jsdf wrote: > > On Mar 29, 11:52 am, Mark Murphy <[email protected]> wrote: >> jsdf wrote: >>> I then thought of trying to load the cursor in abackgroundthread, >>> but realize that this might be problematic, as theCursorAdapter >>> should be instantiated in onCreate() and should take a cursor as a >>> parameter. >> Why? Run your query in an AsyncTask and call setListAdapter() in >> onPostExecute() of the task. > > How do I instruct the list to show "Loading" then? > ListView.setEmptyView() ?
You can do that. Or, you can use a FrameLayout and switch between the "loading" and ListView by toggling the visibility of each. Or, if you want an animation on the transition between the two, use a ViewFlipper. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

