Android Studio Screen - Completely Lock Touch

0

My question is this: I have an Activity that finalizes an order and inserts the data of that request into the bank and it takes a while ... I wonder if there is any way to lock the touch to prevent the user from pressing some button, textEdit, spinner, listView and the like I have on the screen ... I tried to set item by item, but the spinner and listView can not catch. I wanted to disable the touch completely from the screen during data transmission and only enable it again when the transaction runs out ... Does anyone have an idea of a way to do this?

    
asked by anonymous 17.08.2017 / 20:06

1 answer

1

You can create a thread for insertion while rolling a dialog of wait. Then you return in Handler and close dialog . To disable the suspension of dialog use the command dialog.setCanceledOnTouchOutside(false)

    
17.08.2017 / 21:14