Hello All,
This is probably a simple question but for the life of me I can't find any reference to it in the forums.
I'm using USB host in my app which downloads data from medical devices. All of this works fine but what is driving my users crazy is the requirement to Allow USB Permissions for the device each time they connect it. Being medical devices it is not possible to operate them whilst connected with a USB cable so for each measure set it needs to be un-plugged and then re-plugged. Ticking "Use by default for this USB device" makes no difference.
It seems from this link that I can fix it along these lines:
USB Host | Android Developers
But I don't know where to place the device_filter.xml file. If I place it in res/xml then it is removed at compile time so of course the compile fails.
If anybody know the answer to this or some other way of making the Permission persistent then it would be much appreciated.
Thanks in advance,
Mark S.
This is probably a simple question but for the life of me I can't find any reference to it in the forums.
I'm using USB host in my app which downloads data from medical devices. All of this works fine but what is driving my users crazy is the requirement to Allow USB Permissions for the device each time they connect it. Being medical devices it is not possible to operate them whilst connected with a USB cable so for each measure set it needs to be un-plugged and then re-plugged. Ticking "Use by default for this USB device" makes no difference.
It seems from this link that I can fix it along these lines:
USB Host | Android Developers
But I don't know where to place the device_filter.xml file. If I place it in res/xml then it is removed at compile time so of course the compile fails.
If anybody know the answer to this or some other way of making the Permission persistent then it would be much appreciated.
Thanks in advance,
Mark S.