Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

choose between AsyncTask and IntentService/AsyncTaskLoader #178

Open
yulin2 opened this issue Feb 27, 2015 · 0 comments
Open

choose between AsyncTask and IntentService/AsyncTaskLoader #178

yulin2 opened this issue Feb 27, 2015 · 0 comments

Comments

@yulin2
Copy link

yulin2 commented Feb 27, 2015

Hello, I'm doing research on Android async programming. I see in Ushahidi_Android, you use IntentService at some places (SyncServices) while use AsyncTask at other places (such as GeocoderTask). I'm wondering how do you choose between AsyncTask and IntentService? because both are used to execute background tasks.

As far as I know, some articles (for example this article) mention that AsyncTask leads to memory leak and losing task result when there's a configuration change (such as orientation change). But using IntentService or AsyncTaskLoader can avoid such problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant