User-agent: Mediapartners-Google Disallow: User-agent: * Disallow: /search Allow: / Sitemap: http://nano7mobile.blogspot.com/sitemap.xml Nano Mobile: [Q] Best way to use threads in services topic

[Q] Best way to use threads in services topic






I'm new to Android development and haven't used threads in Java before. I have a foreground Service, and I want to perform network operations periodically. I know that I have to do this on another thread, but what is the best way to start one? I've found many ways to do it but I am not sure of which to use: should I use AsyncTask, IntentService, Threads and Handlers, or just a Thread and a Runnable?






Aucun commentaire:

Enregistrer un commentaire