Android usb host permission confirmation dialog is being dismissed when I click outside of it -


i getting android usb host permission confirmation dialog when establishing usb connection 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 implement when user clicks outside dialog, dialog not dismissed. have this? how set setcanceledontouchoutside(false); usb host permission confirmation dialog?


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -