how about android.util.Config.RELEASE?
On Sep 3, 1:36 pm, Brady <[email protected]> wrote:
> Hi everyone,
>
> I'm trying to figure out a way to programmatically determine if my
> build was built in debug mode vs. release mode. I'd like to hide some
> items in my settings screen if it's release.
>
> When I build my app in Eclipse I'm building by default in Debug mode.
> However, when I build the app using the command line, I build it in
> release mode and sign the app using the jarsigner tool.
>
> I've tried using
> PackageInfo appInfo = manager.getPackageInfo("com.adobe.psmobile",
> PackageManager.GET_SIGNATURES);
> to test if
> appInfo.signatures[0].toCharsString()
> matches my debug signature and that didn't seem to work.
>
> I'm now trying to see if I can introspect the app's KeyStore, to match
> the default debug alias described
> here:http://developer.android.com/guide/publishing/app-signing.html
> of "androiddebugkey"
>
> but I haven't figured out how to retrieve the app's KeyStore yet.
>
> I'd greatly appreciate it if anyone had any suggestions on how to do
> this.
> Thanks in advance!
> Brady
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---