get Max Memory For App - Android Hardware

Android examples for Hardware:Memory

Description

get Max Memory For App

Demo Code


//package com.java2s;

public class Main {

    public static int getMaxMemoryForApp() {
        int maxMemory = (int) (Runtime.getRuntime().maxMemory() / 1024);
        return maxMemory;
    }//  w  ww.  jav a2 s. c  o m
}

Related Tutorials