Back to project page AudioPlayerRecorder.
The source code is released under:
MIT License
If you think the Android project AudioPlayerRecorder listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.heavyplayer.audioplayerrecorder.util; // ww w. ja v a 2s. co m import android.content.Context; import android.content.pm.ApplicationInfo; public class BuildUtils { private static Boolean sIsDebug; public static boolean isDebug(Context context) { if(sIsDebug == null && context != null) { final ApplicationInfo info = context.getApplicationInfo(); if(info != null) sIsDebug = (info.flags &= ApplicationInfo.FLAG_DEBUGGABLE) != 0; } return sIsDebug != null && sIsDebug; } }