ApplicationExitInfo.ReasonLowMemory Feld

Definition

Achtung

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

Der Anwendungsprozess wurde durch den System-Killer mit geringem Arbeitsspeicher getötet, was bedeutet, dass das System zum Zeitpunkt des Kills unter Arbeitsspeicherdruck war.

[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

Feldwert

Value = 3

Implementiert

Attribute

Hinweise

Der Anwendungsprozess wurde durch den System-Killer mit geringem Arbeitsspeicher getötet, was bedeutet, dass das System zum Zeitpunkt des Kills unter Arbeitsspeicherdruck war.

Nicht alle Geräte unterstützen Berichte #REASON_LOW_MEMORY; auf einem Gerät ohne solche Unterstützung, wenn ein Prozess aufgrund des Arbeitsspeicherdrucks getötet wird, wird der #getReason Wert android.system.OsConstants#SIGKILLzurückgegeben #REASON_SIGNALED und #getStatus zurückgegeben.

Die Anwendung sollte verwenden android.app.ActivityManager#isLowMemoryKillReportSupported() ActivityManager.isLowMemoryKillReportSupported() , um zu überprüfen, ob das Gerät Berichte #REASON_LOW_MEMORY unterstützt oder nicht.

Java Dokumentation für android.app.ApplicationExitInfo.REASON_LOW_MEMORY.

Teile dieser Seite sind Änderungen auf der Grundlage von Arbeiten, die von der Android Open Source Project erstellt und gemeinsam verwendet und gemäß den in der 2.5 Attribution License beschriebenen Begriffen verwendet werden.

Gilt für: