thanks and have a nice lunch :) On Apr 5, 11:55 am, "~ TreKing" <[email protected]> wrote: > On Mon, Apr 5, 2010 at 12:39 PM, Brill Pappin <[email protected]> wrote: > > My solution was a little bit of code that checks to see if your running in > > the emulator or not. > > Running in the emulator IS NOT the same as running in debug. You can run a > release APK on the emulator (and you should be for testing any > configurations you don't have a device for before publishing your app). > > And running on a device IS NOT the same as running in release. You can (and > should) run a debug APK on a real device while you're developing it. > > On Mon, Apr 5, 2010 at 1:31 PM, HeHe <[email protected]> wrote: > > because there seems to me no way to tell build type of an apk > > I'm blown away by your inability or outright refusal to follow the advice > posted here thus far. > The easiest and most straightforward way to check for "debug mode" is the > debuggable attribute in your manifest that has been mentioned about 50 times > now, which Bob posted a link to so you can check it at run time. > > All you have to do is check for that one flag. That's it. You should be > running in debug mode (i.e., "debuggable=true") about 99% of the time. When > you're ready to publish your app, it takes about 1 SECOND to switch that > flag to "false" before you rebuild your app for a release version. This is > so easy and happens so infrequently, that it really, truly IS NOT WORTH THE > EFFORT you're spending trying to find some clever trick to determine this > automatically. > > THAT'S IT. Why is that so flipping complicated to understand? > > --------------------------------------------------------------------------- > ---------------------- > TreKing - Chicago transit tracking app for Android-powered > deviceshttp://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.

