import android.app.Activity;
import android.app.ActivityManager;
import android.app.AlertDialog;
import android.app.ActivityManager.MemoryInfo;
import android.content.Context;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.net.Uri;
import android.text.Html;
class Utils {
public static MemoryInfo getMemoryInfo(Context _context) {
MemoryInfo info = new MemoryInfo();
getActivityManager(_context).getMemoryInfo(info);
return info;
}
public static ActivityManager getActivityManager(Context context)
{
ActivityManager result = (ActivityManager)context.getSystemService(Context.ACTIVITY_SERVICE);
if (result == null)
throw new UnsupportedOperationException("Could not retrieve ActivityManager");
return result;
}
}