I am getting a android usb host permission confirmation dialog when I am establishing the USB connection from my android application.
PendingIntent mPermissionIntent = PendingIntent.getBroadcast(
context.getApplicationContext(), 0, new Intent(
ACTION_USB_PERMISSION), 0);
IntentFilter filter = new IntentFilter(ACTION_USB_PERMISSION);
context.getApplicationContext().registerReceiver(mUsbReceiver,
filter);
manager.requestPermission(driver.getDevice(), mPermissionIntent);
I want to implement that when the user clicks outside the dialog, the dialog will not be dismissed. What do I have to do for this? How to set setCanceledOnTouchOutside(false);
for usb host permission confirmation dialog?