I\'m using an AsyncTask in my activity. Looks like:
public class MyActivity {
private AsyncTask mTask;
private void doSomethingCool() {
mTas
Click Here for a great thread posted to the android-developers listserv with some good information on handling screen transitions or incoming calls while running an AsyncTask.
It's written by Mark Murphy from http://commonsware.com/
He includes a link to one of his projects that uses a bus system for handling background threads. https://github.com/commonsguy/cwac-bus/tree
I ended up implementing something that looks a lot like this post in my application and it is working great!