I want to display a dialog over an activity but still want to interact with background activity to perform something, while the dialog is being displayed. How can this be done?
You could start a new Thread to perform this action. What I recommend is to implement an AsyncTask
Thread
Here's a great tutorial to implement these stuff.