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 | |
$ run-as {app-package-name} | |
$ cd /data/data/{app-package-name} | |
$ chmod 777 {file} | |
$ cp {file} /mnt/sdcard/ | |
After this you can run | |
$ adb pull /mnt/sdcard/{file} |
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
public static final int IMPORTANCE_BACKGROUND = 400; | |
public static final int IMPORTANCE_FOREGROUND = 100; | |
public static final int IMPORTANCE_VISIBLE = 200; | |
ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); | |
List<ActivityManager.RunningAppProcessInfo> list2 = am.getRunningAppProcesses(); | |
for (ActivityManager.RunningAppProcessInfo ti : list2) { | |
Log.i("IMPORTANCE CODE", String.valueOf(ti.importance)); | |
} |
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
public abstract class BaseDAOLoader<T, DAO extends BaseDAO> extends BaseDBLoader<T> { | |
protected DAO dao; | |
public BaseDAOLoader(DAO dao, DBLoaderCallback<T> callback) { | |
super(callback); | |
this.dao = dao; | |
} | |
} |
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
package com.example.swipelayout; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.support.v4.widget.SwipeRefreshLayout; | |
import android.widget.ArrayAdapter; | |
import android.widget.BaseAdapter; | |
import android.widget.ListView; | |
import java.util.ArrayList; |