Best code examples for Android ActivityManager class (android.app.ActivityManager)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android ActivityManager class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android ActivityManager examples from Open Source projects
This code example shows how to use the following methods: getMemoryInfo
49:	am.getMemoryInfo(outInfo); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getRunningTasks
35:	List<RunningTaskInfo> tasks = am.getRunningTasks(1); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getMemoryInfo
32:	activityManager.getMemoryInfo(fetchedMemoryInfo); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getRunningTasks
298:	List<RunningTaskInfo> tasks = am.getRunningTasks(2); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDeviceConfigurationInfo
51:	ConfigurationInfo info = am.getDeviceConfigurationInfo(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMemoryClass
206:	int memoryClass = activityManager.getMemoryClass(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMemoryInfo
49:	am.getMemoryInfo(outInfo); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDeviceConfigurationInfo
102:	ConfigurationInfo info = am.getDeviceConfigurationInfo(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMemoryInfo
32:	activityManager.getMemoryInfo(fetchedMemoryInfo); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getLauncherLargeIconDensity
211:	mIconDpi = activityManager.getLauncherLargeIconDensity(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDeviceConfigurationInfo
39:	ConfigurationInfo info = am.getDeviceConfigurationInfo(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getRecentTasks, getRunningAppProcesses, getRunningServices
64:	runningInfoList = am.getRunningAppProcesses(); 
65:	runningServiceInfoList = am.getRunningServices(MAX_RUNNING); 
66:	recentTaskInfos = am.getRecentTasks(MAX_RUNNING, 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDeviceConfigurationInfo
39:	ConfigurationInfo info = am.getDeviceConfigurationInfo(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getRunningTasks
19:	List<RunningTaskInfo> tasks = am.getRunningTasks(1); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDeviceConfigurationInfo
39:	ConfigurationInfo info = am.getDeviceConfigurationInfo(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMemoryInfo
37:	activityManager.getMemoryInfo(mi); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDeviceConfigurationInfo, getLargeMemoryClass, getMemoryClass
109:	Log.i(TAG, String.format("Memory class: %d MB", activityManager.getMemoryClass())); 
-
111:	String.format("Large memory class: %d MB", activityManager.getLargeMemoryClass())); 
-
113:	ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDeviceConfigurationInfo
40:	ConfigurationInfo info = am.getDeviceConfigurationInfo(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMemoryInfo
127:	activity_man.getMemoryInfo(mem_info); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getRunningTasks
138:	List<RunningTaskInfo> services = activityManager 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDeviceConfigurationInfo
40:	ConfigurationInfo info = am.getDeviceConfigurationInfo(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getProcessesInErrorState
54:	errList = mActivityManager.getProcessesInErrorState(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDeviceConfigurationInfo
40:	ConfigurationInfo info = am.getDeviceConfigurationInfo(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDeviceConfigurationInfo
40:	ConfigurationInfo info = am.getDeviceConfigurationInfo(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getProcessesInErrorState, sleep
135:	final Collection<ProcessErrorStateInfo> preErr = mActivityManager.getProcessesInErrorState(); 
-
141:	Thread.sleep(mAppLaunchTimeout); 
-
149:	Thread.sleep(mWorkspaceLaunchTimeout); 
-
156:	final Collection<ProcessErrorStateInfo> postErr = 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: restartPackage
23:	am.restartPackage(pkg); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDeviceConfigurationInfo
40:	ConfigurationInfo info = am.getDeviceConfigurationInfo(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getRunningTasks
17:	List<ActivityManager.RunningTaskInfo> appProcesses = mActivityManager.getRunningTasks(1); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDeviceConfigurationInfo
42:	ConfigurationInfo info = am.getDeviceConfigurationInfo(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDeviceConfigurationInfo
114:	ConfigurationInfo info = am.getDeviceConfigurationInfo(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMemoryInfo, getProcessMemoryInfo
60:	activityManager.getMemoryInfo(memInfoSystem); 
61:	MemoryInfo[] memInfoProc = activityManager.getProcessMemoryInfo(myPidArray); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDeviceConfigurationInfo
79:	ConfigurationInfo info = am.getDeviceConfigurationInfo(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getProcessMemoryInfo
273:	MemoryInfo[] memInfo = activityMgr.getProcessMemoryInfo(processPID); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDeviceConfigurationInfo
76:	ConfigurationInfo info = am.getDeviceConfigurationInfo(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDeviceConfigurationInfo
76:	ConfigurationInfo info = am.getDeviceConfigurationInfo(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getRunningTasks
932:	List<RunningTaskInfo> mRunningTaskList = mAM.getRunningTasks(1); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDeviceConfigurationInfo
75:	ConfigurationInfo info = am.getDeviceConfigurationInfo(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getMemoryClass
40:	return am.getMemoryClass(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDeviceConfigurationInfo
51:	ConfigurationInfo info = am.getDeviceConfigurationInfo(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDeviceConfigurationInfo
80:	ConfigurationInfo info = am.getDeviceConfigurationInfo(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDeviceConfigurationInfo
22:	ConfigurationInfo configurationInfo = activityManager.getDeviceConfigurationInfo(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getMemoryInfo
77:	am.getMemoryInfo(outInfo); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getLargeMemoryClass
19:	int memoryClass = am.getLargeMemoryClass(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getMemoryInfo
31:	am.getMemoryInfo(mi); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getMemoryClass
137:	report.append("Memory Class: " + activityManager.getMemoryClass() + "\n"); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: killBackgroundProcesses, restartPackage
39:	activityMgr.restartPackage(packName); 
-
41:	activityMgr.killBackgroundProcesses(packName); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getMemoryClass
18:	return am.getMemoryClass(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getRunningTasks
45:	List<RunningTaskInfo>  tasksInfo = activityManager.getRunningTasks(1); 
Full Snippet Info
5
CodeRank
Related Android ActivityManager Questions & Answers:
See Code Examples for Android ActivityManager Methods: