| Type | Reason |
|---|---|
| AsyncTask |
Developer GuidesUsagejava Example
private class DownloadFilesTask extends AsyncTask<URL, Integer, Long> {
protected Long doInBackground(URL... urls) {
int count = urls.length;
long totalSize = 0;
for (int i = 0; i java Example new DownloadFilesTask().execute(url1, url2, url3); AsyncTask's generic types
java Example
private class MyTask extends AsyncTask<Void, Void, Void> { ... }
The 4 steps
Cancelling a taskThreading rules
Memory observability
Order of execution |
| AsyncTask+Status | Indicates the current status of the task. |
| AsyncTask<TParams,TProgress,TResult> |
Developer GuidesUsagejava Example
private class DownloadFilesTask extends AsyncTask<URL, Integer, Long> {
protected Long doInBackground(URL... urls) {
int count = urls.length;
long totalSize = 0;
for (int i = 0; i java Example new DownloadFilesTask().execute(url1, url2, url3); AsyncTask's generic types
java Example
private class MyTask extends AsyncTask<Void, Void, Void> { ... }
The 4 steps
Cancelling a taskThreading rules
Memory observability
Order of execution |
| BadParcelableException | The object you are calling has died, because its hosting process no longer exists. |
| BaseBundle | A mapping from String values to various types. |
| BatteryHealth | Enumerates values returned by several types. |
| BatteryManager | The BatteryManager class contains strings and constants used for values in the Android.Content.Intent.ActionBatteryChanged Intent, and provides a method for querying battery and charging properties. |
| BatteryPlugged | Enumerates values returned by several types. |
| BatteryProperty | Enumerates values returned by several types. |
| BatteryStatus | Enumerates values returned by several types. |
| Binder | Base class for a remotable object, the core part of a lightweight remote procedure call mechanism defined by Android.OS.BinderConsts. |
| Binder+InterfaceConsts | Documentation for this section has not yet been entered. |
| BinderConsts | Base interface for a remotable object, the core part of a lightweight remote procedure call mechanism designed for high performance when performing in-process and cross-process calls. |
| Build | Information about the current build, extracted from system properties. |
| Build+VERSION | Various version strings. |
| Build+VERSION_CODES | Enumeration of the currently known SDK version codes. |
| BuildVersionCodes | Enumerates values returned by several types and taken as a parameter of the Android.Views.InputMethods.EditorInfo.MakeCompatible member. |
| Bundle | A mapping from String values to various Parcelable types. |
| Bundle+InterfaceConsts | Documentation for this section has not yet been entered. |
| CancellationSignal | Provides the ability to cancel an operation in progress. |
| CancellationSignal+IOnCancelListener | Listens for cancellation. |
| ConditionVariable | Class that implements the condition variable locking paradigm. |
| CountDownTimer | Schedule a countdown until a time in the future, with regular notifications on intervals along the way. |
| DeadObjectException | The object you are calling has died, because its hosting process no longer exists. |
| Debug | Provides various debugging methods for Android applications, including tracing and allocation counts. |
| Debug+InstructionCount | API for gathering and querying instruction counts. |
| Debug+MemoryInfo | This class is used to retrieved various statistics about the memory mappings for this process. |
| Debug+MemoryInfo+InterfaceConsts | Documentation for this section has not yet been entered. |
| DebugShow | Enumerates values returned by several types and taken as a parameter of the Android.OS.Debug.PrintLoadedClasses member. |
| DebugTraceOptions | Enumerates values returned by the Android.OS.Debug.TraceCountAllocs, Android.OS.DebugTraceOptions.CountAllocs, and Android.OS.DebugTraceOptions.None members and taken as a parameter of the Android.OS.Debug.StartMethodTracing member. |
| DropBoxManager | Enqueues chunks of data (from various sources -- application crashes, kernel log records, etc. |
| DropBoxManager+Entry | A single entry retrieved from the drop box. |
| DropBoxManager+Entry+InterfaceConsts | Documentation for this section has not yet been entered. |
| DropBoxManagerFlags | Enumerates values returned by several types and taken as a parameter of several types. |
| Environment | Provides access to environment variables. |
| FileObserver | Monitors files (using ) to fire an event after files are accessed or changed by by any process on the device (including this one). |
| FileObserverEvents | Enumerates values returned by several methods of Android.OS.FileObserverEvents and taken as a parameter of the Android.OS.FileObserver..ctor, and Android.OS.FileObserver.OnEvent members. |
| Handler | A Handler allows you to send and process Android.OS.Message and Runnable objects associated with a thread's Android.OS.MessageQueue. |
| Handler+ICallback | Callback interface you can use when instantiating a Handler to avoid having to implement your own subclass of Handler. |
| HandlerThread | Handy class for starting a new thread that has a looper. |
| IBinder | Base interface for a remotable object, the core part of a lightweight remote procedure call mechanism designed for high performance when performing in-process and cross-process calls. |
| IBinderDeathRecipient | Interface for receiving a callback when the process hosting an IBinder has gone away. |
| IInterface | Base class for Binder interfaces. |
| IParcelable | Interface for classes whose instances can be written to and restored from a Android.OS.Parcel. |
| IParcelableClassLoaderCreator | Specialization of Android.OS.IParcelableCreator that allows you to receive the ClassLoader the object is being created in. |
| IParcelableCreator | Interface that must be implemented and provided as a public CREATOR field that generates instances of your Parcelable class from a Parcel. |
| Looper | Class used to run a message loop for a thread. |
| MemoryFile | MemoryFile is a wrapper for the Linux ashmem driver. |
| Message | Defines a message containing a description and arbitrary data object that can be sent to a Android.OS.Handler. |
| Message+InterfaceConsts | Documentation for this section has not yet been entered. |
| MessageQueue | Low-level class holding the list of messages to be dispatched by a Android.OS.Looper. |
| MessageQueue+IIdleHandler | Callback interface for discovering when a thread is going to block waiting for more messages. |
| Messenger | Reference to a Handler, which others can use to send messages to it. |
| Messenger+InterfaceConsts | Documentation for this section has not yet been entered. |
| NetworkOnMainThreadException | The exception that is thrown when an application attempts to perform a networking operation on its main thread. |
| OperationCanceledException | An exception type that is thrown when an operation in progress is canceled. |
| Parcel | Container for a message (data and object references) that can be sent through an IBinder. |
| Parcelable | Interface for classes whose instances can be written to and restored from a Android.OS.Parcel. |
| ParcelableConsts | Documentation for this section has not yet been entered. |
| ParcelableWriteFlags | Enumerates values returned by several types and taken as a parameter of several types. |
| ParcelFileDescriptor | The FileDescriptor returned by Android.OS.Parcel.ReadFileDescriptor, allowing you to close it when done with it. |
| ParcelFileDescriptor+AutoCloseInputStream | An InputStream you can create on a ParcelFileDescriptor, which will take care of calling Android.OS.ParcelFileDescriptor.Close for you when the stream is closed. |
| ParcelFileDescriptor+AutoCloseOutputStream | An OutputStream you can create on a ParcelFileDescriptor, which will take care of calling Android.OS.ParcelFileDescriptor.Close for you when the stream is closed. |
| ParcelFileDescriptor+CloseEventArgs | Documentation for this section has not yet been entered. |
| ParcelFileDescriptor+FileDescriptorDetachedException | Documentation for this section has not yet been entered. |
| ParcelFileDescriptor+InterfaceConsts | Documentation for this section has not yet been entered. |
| ParcelFileDescriptor+IOnCloseListener | Documentation for this section has not yet been entered. |
| ParcelFileMode | Enumerates values returned by several types and taken as a parameter of the Android.OS.ParcelFileDescriptor.Open, and Android.OS.ParcelFileDescriptor.Open members. |
| ParcelFormatException | The contents of a Parcel (usually during unmarshalling) does not contain the expected data. |
| ParcelUuid | This class is a Parcelable wrapper around Java.Util.UUID which is an immutable representation of a 128-bit universally unique identifier. |
| ParcelUuid+InterfaceConsts | Documentation for this section has not yet been entered. |
| Pattern | Enumerates values returned by several types and taken as a parameter of several types. |
| PatternMatcher | A simple pattern matcher, which is safe to use on untrusted data: it does not provide full reg-exp support, only simple globbing that can not be used maliciously. |
| PatternMatcher+InterfaceConsts | Documentation for this section has not yet been entered. |
| PersistableBundle | A mapping from String values to various types that can be saved to persistent and later restored. |
| PersistableBundle+InterfaceConsts | Documentation for this section has not yet been entered. |
| PowerManager | This class gives you control of the power state of the device. |
| PowerManager+WakeLock | A wake lock is a mechanism to indicate that your application needs to have the device stay on. |
| Process | Tools for managing OS processes. |
| RecoverySystem | RecoverySystem contains methods for interacting with the Android recovery system (the separate partition that can be used to install system updates, wipe user data, etc. |
| RecoverySystem+IProgressListener | Interface definition for a callback to be invoked regularly as verification proceeds. |
| RecoverySystem+ProgressEventArgs | Documentation for this section has not yet been entered. |
| RemoteCallbackList | Takes care of the grunt work of maintaining a list of remote interfaces, typically for the use of performing callbacks from a Android.App.Service to its clients. |
| RemoteException | Parent exception for all Binder remote-invocation errors |
| ResultReceiver | Generic interface for receiving a callback result from someone. |
| ResultReceiver+InterfaceConsts | Documentation for this section has not yet been entered. |
| Signal | Enumerates values returned by the Android.OS.Signal.Kill, Android.OS.Signal.Quit, and Android.OS.Signal.Usr1 members and taken as a parameter of the Android.OS.Process.SendSignal member. |
| StatFs | Retrieve overall information about the space on a filesystem. |
| StrictMode | |
| StrictMode+ThreadPolicy | Android.OS.StrictMode policy applied to a certain thread. |
| StrictMode+ThreadPolicy+Builder | Creates Android.OS.StrictMode.ThreadPolicy instances. |
| StrictMode+VmPolicy | Android.OS.StrictMode policy applied to all threads in the virtual machine's process. |
| StrictMode+VmPolicy+Builder | Creates Android.OS.StrictMode.VmPolicy instances. |
| SystemClock | Core timekeeping facilities. |
| ThreadPriority | Enumerates values returned by several types and taken as a parameter of the Android.OS.Process.SetThreadPriority, and Android.OS.Process.SetThreadPriority members. |
| TokenWatcher | Helper class that helps you use IBinder objects as reference counted tokens. |
| Trace | Writes trace events to the system trace buffer. |
| TransactionFlags | Enumerates values returned by several types and taken as a parameter of the Android.OS.Binder.Transact, and Android.OS.IBinder.Transact members. |
| TransactionTooLargeException | The Binder transaction failed because it was too large. |
| UserHandle | Representation of a user on the device. |
| UserHandle+InterfaceConsts | Documentation for this section has not yet been entered. |
| UserManager | Manages users and user details on a multi-user system. |
| Vibrator | Class that operates the vibrator on the device. |
| WakeLockFlags | Enumerates values returned by several methods of Android.OS.WakeLockFlags and taken as a parameter of the Android.Media.MediaPlayer.SetWakeMode, Android.OS.PowerManager.WakeLock.Release, and Android.OS.PowerManager.NewWakeLock members. |
| WorkSource | Describes the source of some work that may be done by someone else. |
| WorkSource+InterfaceConsts | Documentation for this section has not yet been entered. |