views:

117

answers:

2

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
I wish avoid displaying a dialog...
Arutha
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