On Tue, Aug 26, 2014 at 8:09 PM, Amir Hz <[email protected]> wrote:
> All the examples of Cloud Endpoints I've seen so far use AsyncTask in > android to call the server. However given that AsyncTask is not tied to the > Activity lifecycle, and is becoming somewhat of a deprecated solution, what > is the best practice to use the Cloud Endpoints client library in Android. > There is a right way to use AsyncTask, and there are wrong ways to use AsyncTasks. I would still continue to use AsyncTask as shown in the code examples, but just be aware of the limitations. You might be interested in this blog article which discusses one limitation: http://simonvt.net/2014/04/17/asynctask-is-bad-and-you-should-feel-bad/ ----------------- -Vinny P Technology & Media Consultant Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
