IT. Expert System.

Android Reference


Class CursorLoader

  • public class CursorLoader
    extends AsyncTaskLoader<Cursor>
    Static library support version of the framework's CursorLoader. Used to write apps that run on platforms prior to Android 3.0. When running on Android 3.0 or above, this implementation is still used; it does not try to switch to the framework's implementation. See the framework SDK documentation for a class overview.
    • Constructor Detail

      • CursorLoader

        public CursorLoader(Context context)
        Creates an empty unspecified CursorLoader. You must follow this with calls to setUri(Uri), setSelection(String), etc to specify the query to perform.
      • CursorLoader

        public CursorLoader(Context context,
                    Uri uri,
                    String[] projection,
                    String selection,
                    String[] selectionArgs,
                    String sortOrder)
        Creates a fully-specified CursorLoader. See ContentResolver.query() for documentation on the meaning of the parameters. These will be passed as-is to that call.
    • Method Detail

      • deliverResult

        public void deliverResult(Cursor cursor)
        Description copied from class: Loader
        Sends the result of the load to the registered listener. Should only be called by subclasses. Must be called from the process's main thread.
        deliverResult in class Loader<Cursor>
        cursor - the result of the load
      • onStartLoading

        protected void onStartLoading()
        Starts an asynchronous load of the contacts list data. When the result is ready the callbacks will be called on the UI thread. If a previous load has been completed and is still valid the result may be passed to the callbacks immediately. Must be called from the UI thread
        onStartLoading in class Loader<Cursor>
      • onStopLoading

        protected void onStopLoading()
        Must be called from the UI thread
        onStopLoading in class Loader<Cursor>
      • onCanceled

        public void onCanceled(Cursor cursor)
        Description copied from class: AsyncTaskLoader
        Called if the task was canceled before it was completed. Gives the class a chance to properly dispose of the result.
        onCanceled in class AsyncTaskLoader<Cursor>
      • onReset

        protected void onReset()
        Description copied from class: Loader
        Subclasses must implement this to take care of resetting their loader, as per Loader.reset(). This is not called by clients directly, but as a result of a call to Loader.reset(). This will always be called from the process's main thread.
        onReset in class Loader<Cursor>
      • getUri

        public Uri getUri()
      • setUri

        public void setUri(Uri uri)
      • getProjection

        public String[] getProjection()
      • setProjection

        public void setProjection(String[] projection)
      • getSelection

        public String getSelection()
      • setSelection

        public void setSelection(String selection)
      • getSelectionArgs

        public String[] getSelectionArgs()
      • setSelectionArgs

        public void setSelectionArgs(String[] selectionArgs)
      • getSortOrder

        public String getSortOrder()
      • setSortOrder

        public void setSortOrder(String sortOrder)
      • dump

        public void dump(String prefix,
                FileDescriptor fd,
                PrintWriter writer,
                String[] args)
        Description copied from class: Loader
        Print the Loader's state into the given stream.
        dump in class AsyncTaskLoader<Cursor>
        prefix - Text to print at the front of each line.
        fd - The raw file descriptor that the dump is being sent to.
        writer - A PrintWriter to which the dump is to be set.
        args - Additional arguments to the dump request.


Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)





Java Script








Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 560 / 158859608. Delta: 0.04645 с