Can you use assertions in android programming? If so how do you enable it in eclipse?
Asked
Active
Viewed 325 times
2
-
1See http://stackoverflow.com/questions/298909/java-assertions-underused for reasons why assertions are unpopular in Java in general, let alone in Android – CommonsWare Mar 07 '12 at 14:32
-
See http://stackoverflow.com/questions/6176441/how-to-use-assert-in-android for tip how to enable assertions in Android. – Andrey Starodubtsev Mar 07 '12 at 14:36
1 Answers
2
Since the question was if it is possible... Yes it is possible but I go along with CommonsWare that asserions should be avoided.
Anyway see Can I use assert on Android devices? for how to use Assertions on Android