This is a simple example project showing the usage of an AsyncTask that makes it a bit safer to deal with the Android Activity and Fragment lifecycles.

See the ToastMo post for more details.