0

I'm using a CustomCursorAdapter (extends SimpleCursorAdapter) which binds the cursor data to a ListView in my main activity but it is very slow. So I want to load it in the background and show a ProgressBar. The problem is that the content is shown at once, so I don't have a chance to show a ProgressBar to the user.

Is there a solution for this?

McGarnagle
  • 101,349
  • 31
  • 229
  • 260
Droider
  • 131
  • 12

1 Answers1

0

You have to use AsyncTask to do this. Pls refer to this question:

How to apply async task into this

Community
  • 1
  • 1
havexz
  • 9,550
  • 2
  • 33
  • 29