Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>If you already have a <code>ContentProvider</code>, you might want to check out <code>LoaderManager</code> and <code>CursorLoader</code>:</p> <ul> <li>a nice overview is given by<br> <a href="http://www.vogella.de/articles/AndroidSQLite/article.html#loader" rel="nofollow noreferrer">http://www.vogella.de/articles/AndroidSQLite/article.html#loader</a></li> <li>a tutorial about these I quite like is<br> <a href="http://mobile.tutsplus.com/tutorials/android/android-sdk_loading-data_cursorloader/" rel="nofollow noreferrer">http://mobile.tutsplus.com/tutorials/android/android-sdk_loading-data_cursorloader/</a></li> <li>an article on the Loaders framework in the Android Dev Guide:<br> <a href="http://developer.android.com/guide/topics/fundamentals/loaders.html" rel="nofollow noreferrer">http://developer.android.com/guide/topics/fundamentals/loaders.html</a></li> </ul> <p>Here's also a snippet from <a href="https://stackoverflow.com/a/7603707/180740">one of my previous answers</a> on this topic:</p> <blockquote> <p>There are <code>LoaderManager</code> tutorials on developer.android.com but these are quite... complex and hard to understand the first time like most of the tutorials there. I also had to dig a lot, the best all-in-one stop I found so far is <a href="http://mobile.tutsplus.com/tutorials/android/android-sdk_loading-data_cursorloader/" rel="nofollow noreferrer">http://mobile.tutsplus.com/tutorials/android/android-sdk_loading-data_cursorloader/</a> (plus all the javadocs and compat lib source you can find) --- the way <code>LoaderManager</code> works is very similar to the (now also deprecated, replaced by <code>DialogFragment</code>) managed dialogs with their <code>onCreateDialog</code>, <code>onPrepareDialog</code> methods where you just tell Android to "show dialog #123" and then Android calls your code with that ID; same for loaders: "load loader #123", Android calls on <code>onCreateLoader()</code>.</p> </blockquote>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload