Partager via


ActivityManager.LargeMemoryClass Property

Definition

Return the approximate per-application memory class of the current device when an application is running with a large heap.

public virtual int LargeMemoryClass { [Android.Runtime.Register("getLargeMemoryClass", "()I", "GetGetLargeMemoryClassHandler")] get; }
[<get: Android.Runtime.Register("getLargeMemoryClass", "()I", "GetGetLargeMemoryClassHandler")>]
member this.LargeMemoryClass : int

Property Value

Attributes

Remarks

Return the approximate per-application memory class of the current device when an application is running with a large heap. This is the space available for memory-intensive applications; most applications should not need this amount of memory, and should instead stay with the #getMemoryClass() limit. The returned value is in megabytes. This may be the same size as #getMemoryClass() on memory constrained devices, or it may be significantly larger on devices with a large amount of available RAM.

This is the size of the application's Dalvik heap if it has specified android:largeHeap="true" in its manifest.

Java documentation for android.app.ActivityManager.getLargeMemoryClass().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to