Example usage for android.app ActivityManager.RunningAppProcessInfo getClass

List of usage examples for android.app ActivityManager.RunningAppProcessInfo getClass

Introduction

In this page you can find the example usage for android.app ActivityManager.RunningAppProcessInfo getClass.

Prototype

@HotSpotIntrinsicCandidate
public final native Class<?> getClass();

Source Link

Document

Returns the runtime class of this Object .

Usage

From source file:com.allmycode.flags.MyActivity.java

void logSystemInfo() {
    List<ActivityManager.RunningAppProcessInfo> procInfoList = actManager.getRunningAppProcesses();
    Log.i(CLASSNAME, "********");
    for (ActivityManager.RunningAppProcessInfo procInfo : procInfoList) {
        Log.i(CLASSNAME, "Running app: " + procInfo.getClass().getName());
    }//from   ww w . j ava2  s. com

    List<ActivityManager.RunningTaskInfo> taskInfoList = actManager.getRunningTasks(30);
    for (ActivityManager.RunningTaskInfo taskInfo : taskInfoList) {
        Log.i(CLASSNAME, "Running task: " + taskInfo.getClass().getName());
    }
    Log.i(CLASSNAME, "********");
}