Checking debug/release build
i need to check the build in DEBUG/RELEASE in android on run time. I have search some way for开发者_StackOverflow中文版 it but not working efficiently for like reading PKG and getting information for it.
you can check the application whether it is release mode or debug mode
boolean isDebuggable = (0 != (getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE));
精彩评论