开发者

Checking debug/release build

开发者 https://www.devze.com 2023-04-12 21:31 出处:网络
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

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));
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号