Code example for ActivityManager.MemoryInfo

Methods: getMemoryInfo

0
import android.net.Uri; 
import android.text.Html; 
 
public class Utils { 
 
	public static void showYesNoPrompt(Context _context, String title, String message, OnClickListener onYesListener, OnClickListener onNoListener) {
		AlertDialog.Builder builder = new AlertDialog.Builder(_context);
		builder.setTitle(title);
		builder.setIcon(android.R.drawable.ic_dialog_info); // lame icon
		builder.setMessage(message);
		builder.setCancelable(false);
		builder.setPositiveButton("Yes", onYesListener);
		builder.setNegativeButton("No", onNoListener);
		builder.show();
	} 
	 
	private static final Intent docIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://code.google.com/p/android-vnc-viewer/wiki/Documentation")); 
 
	public static ActivityManager getActivityManager(Context context)
	{ 
Contextual code suggestions in your IDE  Get Codota for Java