I have a dialog in an Android app that I don\'t want the user to be able to cancel. Using .setCancelable(false) disables the back button, but pressing the sear
I disable search button by overriding progress dialog. I create unnamed class and override method onSearchRequest() . And this is working for me. I use this:
progressDialog = new ProgressDialog(Activity.this){
@Override
public boolean onSearchRequested() {
return true;
}
};
instead code:
progressDialog = new ProgressDialog(Activity.this);