Question: On Android when I am mapping an address on a Mapview I have to wait for that action to return and then my user is given control back so I was wondering how can I send that function of to another thread?

```
mapLocationButton.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {

                mapCurrentAddress(); //Send this function to new thread
            }
        });

```

How can this be done? And how will the new thread respond when it's done?

Answer: 
Android provides the AsyncTask class to do that. Read <http://developer.android.com/reference/android/os/AsyncTask.html>
You can use an AsyncTask to do this work in the background. Check this [example](http://developer.android.com/reference/android/os/AsyncTask.html)