Java tutorial
//package com.java2s; //License from project: Apache License import android.annotation.TargetApi; import android.content.Context; import android.content.pm.ApplicationInfo; import android.os.Build; public class Main { @TargetApi(Build.VERSION_CODES.HONEYCOMB) public static boolean isLargeHeap(Context context) { return (context.getApplicationInfo().flags & ApplicationInfo.FLAG_LARGE_HEAP) != 0; } }