UsbSerial icon indicating copy to clipboard operation
UsbSerial copied to clipboard

save permission without any intent filter

Open kamrankhorasani opened this issue 5 years ago • 3 comments

is there any solution to save usb host permission for next use of usb device without any intent filter?

kamrankhorasani avatar Jul 08 '19 07:07 kamrankhorasani

Yes, I think you should have to use SharedPreference and pass the data on next use from shared preference.

dipakbari4 avatar Jul 12 '19 15:07 dipakbari4

Yes, I think you should have to use SharedPreference and pass the data on next use from shared preference.

i want set permission first time for some usb device and connect to them and for second time when i plug in my usb device i dont want request any permission for this usb and i dont want using any intent filter . you said save data to shared preference . so what data should i save and how to use them to prevent any permission request for usb device?

kamrankhorasani avatar Jul 13 '19 04:07 kamrankhorasani

Yes, I think you should have to use SharedPreference and pass the data on next use from shared preference.

i want set permission first time for some usb device and connect to them and for second time when i plug in my usb device i dont want request any permission for this usb and i dont want using any intent filter . you said save data to shared preference . so what data should i save and how to use them to prevent any permission request for usb device?

Any advice on that ?

dariocavada avatar Jul 01 '21 10:07 dariocavada