On Fri, Apr 2, 2010 at 5:16 PM, HeHe <[email protected]> wrote: > is there any way that an apk can know whether it is running in 'debug' or > 'production' mode? >
If you always set debuggable=true for debug builds and debuggable=false for release, then you can check if the "debuggable" attribute is set in your manifest by checking the ApplicationInfo.FLAG_DEBUGGABLE bit flag in the ApplicationInfo for your package, obtained from your Context's PackageManager. ------------------------------------------------------------------------------------------------- TreKing - Chicago transit tracking app for Android-powered devices http://sites.google.com/site/rezmobileapps/treking -- 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 To unsubscribe, reply using "remove me" as the subject.

