This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
adb shell ps | grep <PACKAGE.NAME> | |
adb shell cat /proc/<PID>/status | |
adb shell ps --abi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// We need to do this with OpenGL ES (*not* Canvas -- the "software render" bits | |
// are sticky). We can't stay connected to the Surface after we're done because | |
// that will prevent the camera from attaching. | |
// @param surface should be either Surface or SurfaceTexture | |
public static void clear(object surface) { | |
try { | |
if (Log.IS_DEBUG) Log.logDebug(TAG, "clear() using OpenGL ES: E"); | |
WindowSurface windowSurface = new WindowSurface(surface); | |
windowSurface.makeCurrent(); | |
GLES20.glClearColor(0, 0, 0, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context; | |
import android.os.Debug; | |
import java.io.File; | |
public class OomExceptionHandler implements Thread.UncaughtExceptionHandler { | |
private static final String FILENAME = "out-of-memory.hprof"; | |
public static void install(Context context) { | |
Thread.UncaughtExceptionHandler defaultHandler = Thread.getDefaultUncaughtExceptionHandler(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.app.ActivityManager; | |
import android.content.Context; | |
import android.content.pm.ApplicationInfo; | |
import android.content.pm.PackageManager; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.Iterator; | |
import java.util.List; |
NewerOlder