welu1805 Active Member Licensed User Longtime User Oct 4, 2016 #1 Hi all, I try to work with USB devices for Midi and use MidiUSBManager. With this command I check if the USB device has permission: Code: Copy Dim Manager As USBManager If Manager.HasPermission(Device) = False Then ... If the device is already in device_filter.xml the permission will be granted. But if the user uses a new device which is not in the device_filter.xml no permission is granted. How can I add the new device programatically to the device_filter.xml at runtime? The user can not manually edit the device_filter.xml and recompile my app! The vendor-id and device-id can I get with: Device.VendorId and Device.DeviceId Thanks for help Lutz
Hi all, I try to work with USB devices for Midi and use MidiUSBManager. With this command I check if the USB device has permission: Code: Copy Dim Manager As USBManager If Manager.HasPermission(Device) = False Then ... If the device is already in device_filter.xml the permission will be granted. But if the user uses a new device which is not in the device_filter.xml no permission is granted. How can I add the new device programatically to the device_filter.xml at runtime? The user can not manually edit the device_filter.xml and recompile my app! The vendor-id and device-id can I get with: Device.VendorId and Device.DeviceId Thanks for help Lutz
Erel B4X founder Staff member Licensed User Longtime User Oct 4, 2016 #2 You cannot modify the xml file at runtime. However you can call Manager.RequestPermission to show the permission dialog. Upvote 0
You cannot modify the xml file at runtime. However you can call Manager.RequestPermission to show the permission dialog.
welu1805 Active Member Licensed User Longtime User Oct 5, 2016 #3 I feared it I know the Manager.RequestPermission command. Is there a possibility to hide this dialog and answer automatically with "Yes" or "Connect" so the user has not to do anything? Upvote 0
I feared it I know the Manager.RequestPermission command. Is there a possibility to hide this dialog and answer automatically with "Yes" or "Connect" so the user has not to do anything?
DonManfred Expert Licensed User Longtime User Oct 5, 2016 #4 welu1805 said: and answer automatically with Click to expand... No Upvote 0