Skip to content Skip to sidebar Skip to footer

Checking Debug/release Build

i need to check the build in DEBUG/RELEASE in android on run time. I have search some way for it but not working efficiently for like reading PKG and getting information for it.

Solution 1:

you can check the application whether it is release mode or debug mode

boolean isDebuggable = (0 != (getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE));

Post a Comment for "Checking Debug/release Build"