I am trying to use the AlertDialog with a custom keyboard. My software uses a scanner that reads barcodes. When I depress the hard trigger, the dialog freezes and becomes unresponsive. Eventually you get a popup that says to wait or terminate the program.
When pausing in the debugger I see that It is stopped on the call to the Looper.Loop() method used to pump messages. Is there a way to fail safe this so that the looper does not lock up the UI?