there is this question and answer:
Can I use assert on Android devices?
However, then I ran across this:
http://tools.android.com/recent/androidstudio045released
which says:
Some new lint checks, and in particular one which flags uses of the assertion keyword. This does not work reliably on devices and you should use BuildConfig.DEBUG to do conditional checks instead.
There is no "assertion" keyword, there is only an "assert" keyword, so I'm not sure what to even make of that release note.
Anyway, what I'm curious about is:
If I follow the first link and do:
adb shell setprop debug.assert 1
before installing the app on the device, and compile the app as debug with assertions turned on, then are they reliably expected to work on all devices? Or, should I believe the release notes for Android Studio 0.4.5?