get app max runtime memory via Runtime - Android Hardware

Android examples for Hardware:Memory

Description

get app max runtime memory via Runtime

Demo Code


//package com.java2s;

public class Main {
    /**/*from   w  ww  .j  a v a  2s .com*/
     * get app max runtime memory
     */
    public static long getMaxMemory() {
        return Runtime.getRuntime().maxMemory() / 1024;
    }
}

Related Tutorials