The AsyncTask and shows you how to handle concurrency issues. The AsyncTask class provides an easy way to execute some work in a background thread ...
developer.android.com