How to get the USB device list of an Android device?

by Steel Tiger » Wed, 20 Jan 2010 02:07:49 GMT


Sponsored Links
 Dear Sirs,
In my development environment, more than one USB device can be
plugined in the Android device. If I want to get the USB device list
of an Android device. What should I do?
Of course, if there is only one USB device, it seems that we can
access it as sdcard.



How to get the USB device list of an Android device?

by Marek » Wed, 20 Jan 2010 16:14:49 GMT


 If you want to get a list of connected devices, use "adb devices"


Sponsored Links


How to get the USB device list of an Android device?

by Steel Tiger » Wed, 27 Jan 2010 10:36:48 GMT


 Dear Marek,
Thank you very much.
I used "adb devices", the emulator device(or android device?) can be
shown. But I want to get "the USB disks  plugged in an Android
device". Woud you please give me some more advices?




--



Other Threads

1. I get "unknown error" when opening simple TCP Socket

Hi, I have a problem with Android code that works on Android SDK m5-
rc15 and m5-rc14, but doesn't works on Android 0.9 SDK beta.

It's about TCP sockets; I haven't read anything about changes on
java.net about this, but the problem exists.

When I try to open a simple socket connection:

        InetAddress destination=null;
        try
        {
                destination = InetAddress.getByName("192.168.1.33");  //put
your IP addres in your case
                Scoket s=new Socket(destination,5003); // here is the problem

         }
        catch (IOException e)
        {
            // TODO Auto-generated catch block
            e.printStackTrace();
         }


I obtain this error captured in "e" variable (e.getMessage()):
         unknown error


It's exactly the same code that works on older Android SDK
versions...

Does anyone have any idea about this problem? Have Android changed
java.net in this Socket constructor? Have emulator changed this
sockets redirection??? Any idea??

thanks!

VicX


--~--~---------~--~----~------------~-------~--~----~

2. How to get the disk space using Android?

Want to know the amount of space available in mobile phone
--~--~---------~--~----~------------~-------~--~----~

3. Example of Scroll bar

4. how to do animation in popupwindow??

5. animation problem with popup window

6. jchat4android 1.1 released

7. JADE-ANDROID Rel 1.1 released for ANDROID SDK 0.9 beta