Java tutorial
//package com.java2s; import java.util.List; import android.app.ActivityManager; import android.app.ActivityManager.RunningAppProcessInfo; import android.content.Context; public class Main { public static List<RunningAppProcessInfo> getProgess(Context context) { return getManager(context).getRunningAppProcesses(); } public static ActivityManager getManager(Context context) { return (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); } }