Java tutorial
//package com.java2s; //License from project: Apache License import android.annotation.TargetApi; import android.app.ActivityManager; import android.os.Build; public class Main { @TargetApi(Build.VERSION_CODES.HONEYCOMB) public static int getLargeMemoryClass(ActivityManager am) { return am.getLargeMemoryClass(); } }