public static final int  FLAG_DEBUGGABLE
Since: API Level 1

Value for flags: set to true if this application would like to allow
debugging of its code, even when installed on a non-development
system. Comes from android:debuggable of the <application> tag.


Pseudo code...

Use the PackageManager to get the PackageInfo for your application
package

ApplicationInfo myAppInfo = packageInfo.applicationInfo;

if ( 0 != (myAppInfo.flags & ApplicationInfo.FLAG_DEBUGGABLE))
{
  // debug version
}
else
{
  // release version
}

On Jul 28, 4:34 pm, TreKing <treking...@gmail.com> wrote:
> On Wed, Jul 28, 2010 at 1:47 AM, sachin <sachin.r...@wipro.com> wrote:
> > Please let me know if we have any environment variable defined for it which
> > can be accessed in java code and in xml file also.
>
> Try ApplicationInfo.FLAG_DEBUGGABLE. I don't this is available in XML
> though.
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to