Android.Runtime.AndroidEnvironment.FailFast Method
Writes message to the Android log and exits the process.

Syntax

public static void FailFast (string message)

Parameters

message
A string containing the message to write to the Android log before forceably exiting the process.

Remarks

Operation
This method is equivalent to calling Logger.Log(LogLevel, string, string) as Logger.Log(Android.Runtime.LogLevel.Fatal, AndroidEnvironment.AndroidLogAppName, message) followed by Environment.Exit(int).
Note: Use this method instead of Environment.FailFast(string) as this will write messages to the Android log file. Additionally, as of Mono 2.6, Environment.FailFast throws a NotImplementedException, and thus won't actually exit the process.

Requirements

Namespace: Android.Runtime
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0