Android Guides | Samples

Android.OS.StrictMode.ThreadPolicy.Builder.PenaltyDeath Method

Crash the whole process on violation.


[Android.Runtime.Register("penaltyDeath", "()Landroid/os/StrictMode$ThreadPolicy$Builder;", "")]
public StrictMode+ThreadPolicy+Builder PenaltyDeath ()


Crash the whole process on violation. This penalty runs at the end of all enabled penalties so you'll still get see logging or other violations before the process dies.

Unlike StrictMode+ThreadPolicy+Builder.PenaltyDeathOnNetwork, this applies to disk reads, disk writes, and network usage if their corresponding detect flags are set.

[Android Documentation]


Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions:
Since: Added in API level 9