summaryrefslogtreecommitdiff
path: root/core/java/android/content/AsyncTaskLoader.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2011-04-19 18:44:03 -0700
committerDianne Hackborn <hackbod@google.com>2011-04-20 10:26:44 -0700
commit9567a66a5e6f49dd8495fb5f6e2efb9f32e84b35 (patch)
treeed995619922077d0ab351a1dc2ba405de04af111 /core/java/android/content/AsyncTaskLoader.java
parente85626f33e6988b3314d8978c23923f91c3f49c9 (diff)
Deprecate a bunch of APIs.
And clean up some documentation. Change-Id: I7882183b3daf883b7ac6098d19f88dc7cfbcdf61
Diffstat (limited to 'core/java/android/content/AsyncTaskLoader.java')
-rw-r--r--core/java/android/content/AsyncTaskLoader.java19
1 files changed, 18 insertions, 1 deletions
diff --git a/core/java/android/content/AsyncTaskLoader.java b/core/java/android/content/AsyncTaskLoader.java
index 383cb6b24163..0b54396ce90a 100644
--- a/core/java/android/content/AsyncTaskLoader.java
+++ b/core/java/android/content/AsyncTaskLoader.java
@@ -27,7 +27,24 @@ import java.io.PrintWriter;
import java.util.concurrent.CountDownLatch;
/**
- * Abstract Loader that provides an {@link AsyncTask} to do the work.
+ * Abstract Loader that provides an {@link AsyncTask} to do the work. See
+ * {@link Loader} and {@link android.app.LoaderManager} for more details.
+ *
+ * <p>Here is an example implementation of an AsyncTaskLoader subclass that
+ * loads the currently installed applications from the package manager. This
+ * implementation takes care of retrieving the application labels and sorting
+ * its result set from them, monitoring for changes to the installed
+ * applications, and rebuilding the list when a change in configuration requires
+ * this (such as a locale change).
+ *
+ * {@sample development/samples/ApiDemos/src/com/example/android/apis/app/LoaderCustom.java
+ * loader}
+ *
+ * <p>An example implementation of a fragment that uses the above loader to show
+ * the currently installed applications in a list is below.
+ *
+ * {@sample development/samples/ApiDemos/src/com/example/android/apis/app/LoaderCustom.java
+ * fragment}
*
* @param <D> the data type to be loaded.
*/