so, you mean Android does not support "assert" currently? On Jan 27, 11:21 am, Brion Emde <[email protected]> wrote: > Take a look at the Assert class, > here:http://developer.android.com/intl/de/reference/junit/framework/Assert... > > On Jan 26, 8:11 pm, EricWang <[email protected]> wrote: > > > How can I enable assert statement on Android? > > I have referred to a > > url:http://android.git.kernel.org/?p=platform/dalvik.git;a=blob_plain;f=d... > > and done what it said: adb shell setprop dalvik.vm.enableassertions > > all > > but nothing happen! > > The test code is: > > Log.v("assert 1","1"); > > assert false; > > Log.v("assert 2","2"); > > No matter what I did, "assert 2" will be printed, which means "assert > > false" does nothing! > > What should I do? > > BTW, I use eclipse as IDE.
-- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

