判断Android 当前版本是否为debug版本
时间:2018-06-03 11:30:30
收藏:0
阅读:469
public static boolean isDebugVersion(Context context) { try { ApplicationInfo info = context.getApplicationInfo(); return (info.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0; } catch (Exception e) { e.printStackTrace(); } return false; }
原文:https://www.cnblogs.com/netcorner/p/9128136.html
评论(0)