delozoya Member Licensed User Longtime User Oct 19, 2014 #1 How I can detect if a inserted and initialized a pendrive? Thanks
JTmartins Active Member Licensed User Longtime User Oct 20, 2014 #2 Assuming your device supports usb Host, I think that this post from Erel can help you http://www.b4x.com/android/forum/threads/android-usb-host-tutorial-adbtest.11289/#content http://www.b4x.com/android/forum/threads/android-usb-host-tutorial-adbtest.11289/#content Check the code that iterates over the connected devices. I think pendrives have a class of 08h (mass storage devices), but I'm not sure on this, as I never needed to connect one. José Last edited: Oct 20, 2014 Upvote 0
Assuming your device supports usb Host, I think that this post from Erel can help you http://www.b4x.com/android/forum/threads/android-usb-host-tutorial-adbtest.11289/#content http://www.b4x.com/android/forum/threads/android-usb-host-tutorial-adbtest.11289/#content Check the code that iterates over the connected devices. I think pendrives have a class of 08h (mass storage devices), but I'm not sure on this, as I never needed to connect one. José
delozoya Member Licensed User Longtime User Oct 20, 2014 #3 I want to know when this is initialized USB. for example, I connect the usb and put the notification bar preparing sd card. How I can know if I can put files? I can put files but I want you to tell me when I can do it. Thanks Upvote 0
I want to know when this is initialized USB. for example, I connect the usb and put the notification bar preparing sd card. How I can know if I can put files? I can put files but I want you to tell me when I can do it. Thanks
Erel B4X founder Staff member Licensed User Longtime User Oct 20, 2014 #4 Try to listen to the android.intent.action.MEDIA_MOUNTED intent: http://www.b4x.com/android/forum/threads/20103/#content Upvote 0
Try to listen to the android.intent.action.MEDIA_MOUNTED intent: http://www.b4x.com/android/forum/threads/20103/#content
delozoya Member Licensed User Longtime User Oct 20, 2014 #5 Thanks. I try with post http://www.b4x.com/android/forum/th...ry-notificationlistenerservice.35630/#content. In my phone (xperia Z, rom paranoid) it works. But in a tablet allwinner a23 with android 4.2.2 and a samsung galaxy mini with android 2.3 not works. the error is this picture. Any solution? Thanks Attachments Sin título.png 35.1 KB · Views: 130 Upvote 0
Thanks. I try with post http://www.b4x.com/android/forum/th...ry-notificationlistenerservice.35630/#content. In my phone (xperia Z, rom paranoid) it works. But in a tablet allwinner a23 with android 4.2.2 and a samsung galaxy mini with android 2.3 not works. the error is this picture. Any solution? Thanks
Erel B4X founder Staff member Licensed User Longtime User Oct 21, 2014 #6 See the first line in the tutorial: http://www.b4x.com/android/forum/th...ry-notificationlistenerservice.35630/#content Upvote 0
See the first line in the tutorial: http://www.b4x.com/android/forum/th...ry-notificationlistenerservice.35630/#content
delozoya Member Licensed User Longtime User Oct 26, 2014 #7 ok, i dont see. In the end Ican with library MSfiles. Thanks Upvote 0