Android 中判断 当前应用是 debug 还是release 程序员文章站 2022-05-04 07:51:10 ... 判断当前应用是否是debug状态 //判断当前应用是否是debug状态 public static boolean isApkInDebug(Context context) { try { ApplicationInfo info = context.getApplicationInfo(); return (info.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0; } catch (Exception e) { return false; } } 相关标签: 安卓知识 上一篇: Java:String、StringBuffer和StringBuilder的区别 下一篇: android 一个app中有多个activity读取NFC标签问题 推荐阅读 Android 中判断 当前应用是 debug 还是release