Freigeben über


ApplicationExitInfo.ReasonLowMemory Field

Definition

Caution

This constant will be removed in the future version. Use Android.App.ApplicationExitInfoReason enum directly instead of this field.

Application process was killed by the system low memory killer, meaning the system was under memory pressure at the time of kill.

[Android.Runtime.Register("REASON_LOW_MEMORY", ApiSince=30)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.ApplicationExitInfoReason enum directly instead of this field.", true)]
public const Android.App.ApplicationExitInfoReason ReasonLowMemory = 3;
[<Android.Runtime.Register("REASON_LOW_MEMORY", ApiSince=30)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.ApplicationExitInfoReason enum directly instead of this field.", true)>]
val mutable ReasonLowMemory : Android.App.ApplicationExitInfoReason

Field Value

Value = 3

Implements

Attributes

Remarks

Application process was killed by the system low memory killer, meaning the system was under memory pressure at the time of kill.

<p class="note"> Not all devices support reporting #REASON_LOW_MEMORY; on a device with no such support, when a process is killed due to memory pressure, the #getReason will return #REASON_SIGNALED and #getStatus will return the value android.system.OsConstants#SIGKILL.

Application should use android.app.ActivityManager#isLowMemoryKillReportSupported() ActivityManager.isLowMemoryKillReportSupported() to check if the device supports reporting #REASON_LOW_MEMORY or not. </p>

Java documentation for android.app.ApplicationExitInfo.REASON_LOW_MEMORY.

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