List of usage examples for android.app Application getApplicationInfo
@Override
public ApplicationInfo getApplicationInfo()
From source file:Main.java
/** * Checks if the application is running as debug mode or not. * @param app the application to check//from ww w. ja v a2s .co m * @return true if debuggable, false otherwise. */ public static final boolean isDebuggable(Application app) { ApplicationInfo info = app.getApplicationInfo(); return (info.flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0; }