K Kartographers Member Licensed User Longtime User Sep 1, 2014 #1 Is there a way to check whether a pen drive is connected to USBHost0 or USBHost1. I am using an embedded board called cubietruck that runs with Android OS and have root access to the device.
Is there a way to check whether a pen drive is connected to USBHost0 or USBHost1. I am using an embedded board called cubietruck that runs with Android OS and have root access to the device.
Erel B4X founder Staff member Licensed User Longtime User Sep 2, 2014 #2 Have you tried to list the root folder or /mnt? Upvote 0
K Kartographers Member Licensed User Longtime User Sep 10, 2014 #3 Erel said: Have you tried to list the root folder or /mnt? Click to expand... i need to do it directly within the app, so that i can transfer a file on the connected USB device Upvote 0
Erel said: Have you tried to list the root folder or /mnt? Click to expand... i need to do it directly within the app, so that i can transfer a file on the connected USB device
Erel B4X founder Staff member Licensed User Longtime User Sep 10, 2014 #4 Once you understand how the USB devuce shows you will be able to do it programmatically. Also try this code: http://www.b4x.com/android/forum/threads/how-to-ext-sd-card-write-on-android-4-4.42177/#post-255351 and see whether it returns the USB drive as part of the external storages. Upvote 0
Once you understand how the USB devuce shows you will be able to do it programmatically. Also try this code: http://www.b4x.com/android/forum/threads/how-to-ext-sd-card-write-on-android-4-4.42177/#post-255351 and see whether it returns the USB drive as part of the external storages.