Search code examples
androidandroid-actionbarandroid-contentproviderandroid-cursorandroid-cursorloader

Using CursorLoaders in a Searchable Activity


I'm trying to create a Searchable Activity to be used with the Action Bar. I have a CursorAdapter supplying the data from a ContentProvider.

What I have trouble understanding is why does the API examples, ie, searchableDictonary, performs a managedQuery instead of doing something async with the CursorLoaders.

Perhaps I'm missing something?


Solution

  • Because this example is fairly old and CursorLoaders didn't exist at the time. If loaders work for you, do use them. Are you having any specific problem?