Android Question USB permission for the last time I hope

adrian_eb

Member
Licensed User
Longtime User
Hi,

My android box has an arduino connected, I made the manifest/device_filter as it shows on


and it works perfect, almost. If I turn the box without plugin the usb arduino, and then plug it, the app is lauched automaticaly and it connects perfect with the arduino.
But if I turn on the box with the arduino plugged, nothing happens, and I have to click on the app icon to start it, and it ask for the USB permission.

Im missing somethig?

I was thinking on put a relay to delay the "plug the USB" , but it is an extreme solution by hardware, I hope can fix it by software!

Thanks in advance!
 

adrian_eb

Member
Licensed User
Longtime User
Thanks for the answer, but I don't think you see my problem, or I don't understand your solution.

I can autostart the app with some help of a third app to autolauch my app. Thats not the problem. I see I can avoid it with your help.
My problem is that if I plug the arduino after the android box is on, everything works, the app can access the USB automatically.
If I have the arduino plugged with the android box is off and I turn it on, I have to start the app "manually" and the USB permission box appears, I have to click give permission, and restart the app to work.
I still dont understand why with the " manifest/device_filter " working, it fails when the app is run, but it works perfect when I plug the arduino.

Thanks
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…