How to implement a CursorLoader for Android API level <11
Asked Answered
I

1

3

I have an application with many list activities (5-6 of them), and all of them have custom cursor adapters, from my own ContentProvider(2), sitting on an Sqlite database(2).

Now the problem, I want to implement CursorLoader (or like) class to load the cursors on background thread, below API level < 11, preferably 6 to 9..

I also want to show a ProgressSpinner, while the list is loading.

What to do, best, AsynTask? Thread? or write my own CursorLoader for <11, please help.

Inadmissible answered 20/10, 2011 at 9:31 Comment(0)
A
4

You can use the Compatibility Library (Part of the SDK). It contains the Loader-Framework for Android API Level >= 4.

Alainealair answered 20/10, 2011 at 9:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.