Android.App.Service.Dump Method
Print the Service's state into the given stream.

Syntax

[Android.Runtime.Register("dump", "(Ljava/io/FileDescriptor;Ljava/io/PrintWriter;[Ljava/lang/String;)V", "GetDump_Ljava_io_FileDescriptor_Ljava_io_PrintWriter_arrayLjava_lang_String_Handler")]
protected virtual void Dump (Java.IO.FileDescriptor fd, Java.IO.PrintWriter writer, string[] args)

Parameters

fd
The raw file descriptor that the dump is being sent to.
writer
The PrintWriter to which you should dump your state. This will be closed for you after you return.
args
additional arguments to the dump request.

Remarks

Print the Service's state into the given stream. This gets invoked if you run "adb shell dumpsys activity service <yourservicename>" (note that for this command to work, the service must be running, and you must specify a fully-qualified service name). This is distinct from "dumpsys <servicename>", which only works for named system services and which invokes the Android.OS.BinderConsts.dump(java.io.FileDescriptor, java.lang.String[]) method on the Android.OS.BinderConsts interface registered with ServiceManager.

[Android Documentation]

Requirements

Namespace: Android.App
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1