Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import android.annotation.TargetApi;
import android.app.ActivityManager;

import android.content.Context;

public class Main {
    @TargetApi(14)
    public static int getMemoryRatioForLargeMemoryClass(Context paramContext) {
        return ((ActivityManager) paramContext.getSystemService("activity")).getLargeMemoryClass();
    }
}