Android Guides | Samples

Android.OS.DropBoxManager Class

Enqueues chunks of data (from various sources -- application crashes, kernel log records, etc.

See Also: DropBoxManager

Syntax

[Android.Runtime.Register("android/os/DropBoxManager", DoNotGenerateAcw=true)]
public class DropBoxManager : Object

Remarks

Enqueues chunks of data (from various sources -- application crashes, kernel log records, etc.). The queue is size bounded and will drop old data if the enqueued data exceeds the maximum size. You can think of this as a persistent, system-wide, blob-oriented "logcat".

You can obtain an instance of this class by calling Context.GetSystemService(String) with Context.DropboxService.

DropBoxManager entries are not sent anywhere directly, but other system services and debugging tools may scan and upload entries for processing.

[Android Documentation]

Requirements

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

The members of Android.OS.DropBoxManager are listed below.

See Also: Object

Protected Constructors

Create a dummy instance for testing.
A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
ActionDropboxEntryAddedString. Broadcast Action: This is broadcast when a new entry is added in the dropbox.
const
ExtraTagString. Extra for DropBoxManager.ActionDropboxEntryAdded: string containing the dropbox tag.
const
ExtraTimeString. Extra for DropBoxManager.ActionDropboxEntryAdded: long integer value containing time (in milliseconds since January 1, 1970 00:00:00 UTC) when the entry was created.
const
IsEmptyDropBoxManagerFlags (1). Flag value: Entry's content was deleted to save space.
const
IsGzippedDropBoxManagerFlags (4). Flag value: Content can be decompressed with GZIPOutputStream.
const
IsTextDropBoxManagerFlags (2). Flag value: Content is human-readable UTF-8 text (can be combined with IS_GZIPPED).

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

AddData(String, Byte[], DropBoxManagerFlags)
Stores binary data, which may be ignored or discarded as with DropBoxManager.AddText(String,String).
AddFile(String, File, DropBoxManagerFlags)
Stores the contents of a file, which may be ignored or discarded as with DropBoxManager.AddText(String,String).
AddText(String, String)
Stores human-readable text.
static
FromContext(Context) : DropBoxManager
GetNextEntry(String, Int64) : DropBoxManager+Entry
Gets the next entry from the drop box after the specified time.
IsTagEnabled(String) : Boolean
Checks any blacklists (set in system settings) to see whether a certain tag is allowed.