felHR85 / UsbSerial

Usb serial controller for Android
MIT License
1.8k stars 585 forks source link

save permission without any intent filter #259

Open kamrankhorasani opened 5 years ago

kamrankhorasani commented 5 years ago

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

dipakbari4 commented 5 years ago

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

kamrankhorasani commented 5 years ago

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?

dariocavada commented 3 years ago

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 ?