How can I temporarily block all user interactions with the views of an activity ? (Other than calling the setEnabled method on each view)
+1
A:
If you need to block user interaction while performing some task in the background you can use a ProgressDialog.
http://developer.android.com/guide/topics/ui/dialogs.html#ProgressDialog
Stefan Cosma
2010-04-26 15:43:26
I wish avoid displaying a dialog...
Arutha
2010-04-26 16:02:45
A:
As Stefan allready wrote. As long as you are showing a ProgressDialog the user can't interact with the views in your activity. If you set the dialog to cancelable false even the back button is deactivated.
Janusz
2010-04-26 15:58:50