Assuming that the update method makes an HTTP request, but doing it for each time onResume() is called is excessive, wouldn't the most obvious strategy be to cache the data? That is, when onResume() is called, check how long ago the last HTTP request was made. If it was too long ago, perform the HTTP request and save the results somewhere. If it was recently, just use the saved results.
-- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en