Example usage for android.app ActivityManager.RunningTaskInfo getClass

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

Introduction

In this page you can find the example usage for android.app ActivityManager.RunningTaskInfo 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  w w  w .j  a v  a2  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, "********");
}