Last active
October 21, 2022 01:22
-
-
Save akingdom/9b5c55a38dbdd910acd24d3e7927a180 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Android Java | |
// How to check if the app is a debug build versus a release build. | |
// | |
// By Andrew Kingdom | |
// MIT license | |
// | |
public class MainActivity extends AppCompatActivity { | |
// Returns true if the app is debuggable | |
public boolean isDebuggable() {return ((this.getApplicationInfo().flags) & android.content.pm.ApplicationInfo.FLAG_DEBUGGABLE) != 0;} | |
// ... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment