Can you use assertions in android programming? If so how do you enable it in eclipse?
2
-
1See stackoverflow.com/questions/298909/java-assertions-underused for reasons why assertions are unpopular in Java in general, let alone in AndroidCommonsWare– CommonsWare2012-03-07 14:32:56 +00:00Commented Mar 7, 2012 at 14:32
-
See stackoverflow.com/questions/6176441/… for tip how to enable assertions in Android.Andrey Starodubtsev– Andrey Starodubtsev2012-03-07 14:36:26 +00:00Commented Mar 7, 2012 at 14:36
Add a comment
|
1 Answer
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