Sunday, August 28, 2011

[android-developers] Re: delay

I think that you, very specifically, want to use a ContentProvider as
a local cache between your UI and the network. The Cursor callbacks
make it incredibly convenient to display some kind of interstitial
page (maybe animation) when, at worst, there is no content at all,
and to update it as soon as the network data arrives. It also makes
it so that the second time that the user visits the page, they don't
have to wait a second time. Instead of an AsyncTask, you'll probably
want to look at using a Loader (native in Honeycomb, or by including
the ACP for earlier versions).

-blake

On Aug 27, 11:06 am, bob <b...@coolgroups.com> wrote:
> Right now, I have code that has to download data from the web after
> you click a button.  So, there's a delay.  Anyone know how to make
> this more user-friendly?

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate