Code example for ActivityManager.MemoryInfo

Methods: getMemoryInfo

0
			throw new UnsupportedOperationException("Could not retrieve ActivityManager");
		return result;
	} 
 
	public static MemoryInfo getMemoryInfo(Context _context) {
		MemoryInfo info = new MemoryInfo();
		getActivityManager(_context).getMemoryInfo(info);
		return info;
	} 
 
	private static int nextNoticeID = 0;
	public static int nextNoticeID() { 
		nextNoticeID++;
		return nextNoticeID;
	} 
 
	public static void showErrorMessage(Context _context, String message) {
		showMessage(_context, "Error!", message, android.R.drawable.ic_dialog_alert, null);
	} 
 
	public static void showFatalErrorMessage(final Context _context, String message) {