I want to use assert obj != null : \"object cannot be null\" on Android device. The assert doesn\'t seem to work, so I searched online and I found this local so
assert obj != null : \"object cannot be null\"
To make assertion available in Java Virtual Machine, using -enableassertions or -ea command-line options
java –ea YourApp