Bob, thanks for reply. i am still still very very confused....the link you gave me is a "constant" FLAG_DEBUGGABLE, indicating the application is manifested to be debuggable. but what i need is some info telling my apk that it was a debug or release built without changing the "debuggable" attribute in manifest each time between debug/release builds. i need it because in case i forget to change the debuggable attribute of my release built to false my apk can still behave correctly.
in short, (1). i dont want to change the debuggable attribute in manifest between debug and release builds. (2). i need to some programmatic method in my apk so that it can know whether it is built by "Run> Run As" or "Run> Debug As", or by "Android Tools> Export Signed Application". On Apr 5, 12:27 am, Bob Kerns <[email protected]> wrote: > TreKing -- He doesn't understand what a debug build is. The flag > indicates that the DEVICE, not your APPLICATION is a debug build. > > HeHe -- That's why you can't get at it with Config.DEBUG -- you'd need > to reflash your device. You don't make this in Eclipse -- or at least > not using the SDK. > > What you're really looking for is > this:http://developer.android.com/intl/de/reference/android/content/pm/App... > > Just little misunderstanding... > > On Apr 4, 9:28 pm, "~ TreKing" <[email protected]> wrote: > > > > > On Sun, Apr 4, 2010 at 9:38 PM, HeHe <[email protected]> wrote: > > > my apk stills gets a *false* Config.DEBUG value. > > > Are you being serious? Which part of Xavier's post did you not understand? > > > So once again: > > > On Sun, Apr 4, 2010 at 3:35 PM, Xavier Ducrohet <[email protected]> wrote: > > > If you are talking about > > >http://d.android.com/reference/android/util/Config.html#DEBUGthenit's > > > based on whether the device build is a debug build. It has nothing to do > > > with your app. > > > --------------------------------------------------------------------------- > > ---------------------- > > 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.

