cens/AndWellnessPhone — Issue #250: Determine best way to run tasks in backround
Author: cketcham
Created: 2012-01-19 20:16:14+00:00
State: open

We need an easy way to create tasks which can be run on the background thread which will handle screen orientation changes. I was thinking about using either AsyncTaskLoader or ManagedAsyncTask.

AsyncTaskLoader is nice since it is built into android, but it doesn't seem like its suited to tasks which require user input before they are run.

ManagedAsyncTask could be an alternative since it is easier to create the tasks and run them at any point, but there still needs to be something managing it so more than one of the same task isn't started.

As of 0222ca4e697a7f3167b4bac46c3c72d47ff644ac I'm using AsyncTaskLoader for everything except the LoginTask