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. Problem with table layout

i want to have table with 2 columns, and i want to both columns have
same width

and i want my data displayed in both columns align to left
here is my layout file:

<?xml version="1.0" encoding="utf-8"?>
<TableLayout xmlns:android="http://schemas.android.com/apk/res/
android"
  android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:stretchColumns="3">
 <TableRow>
        <TextView android:id="@+id/left1"
android:layout_height="wrap_content"
                android:textColor="#fff" android:layout_width="wrap_content"
                android:layout_margin="7dip" android:text="l1"
                android:layout_below="@id/myText"
                android:gravity="left">
        </TextView>

        <TextView android:id="@+id/right1"
android:layout_height="wrap_content"
                android:textColor="#fff" android:layout_width="wrap_content"
                android:layout_margin="7dip" android:text="r1"
          android:layout_below="@id/myText"
                android:gravity="left">
        </TextView>
</TableRow>

 <TableRow>
        <TextView android:id="@+id/left2"
android:layout_height="wrap_content"
                android:textColor="#fff" android:layout_width="wrap_content"
                android:layout_margin="7dip" android:text="l2"
                android:layout_below="@id/myText"
                android:gravity="left">
        </TextView>

        <TextView android:id="@+id/right2"
android:layout_height="wrap_content"
                android:textColor="#fff" android:layout_width="wrap_content"
                android:layout_margin="7dip" android:text="r2"
                android:layout_below="@id/myText"
                android:gravity="left">
        </TextView>
 </TableRow>
</TableLayout>

after i display that window li and l2 are align to leftbut r1 and r2
ale align to right
how i can fix that?
regards

-- 

2. Obfuscation/optimization causing error?

I just released an obfuscated/optimized version of my app for the
first time yesterday.  Not sure if this is related, but since then, I
have gotten a couple of error reports that I cannot duplicate or
explain (none of my classes are invoked):

Caused by: java.lang.RuntimeException: Parcel
android.os.par...@4476a468: Unmarshalling unknown type code 48 at
offset 2280
at android.os.Parcel.readValue(Parcel.java:1838)
at android.os.Parcel.readSparseArrayInternal(Parcel.java:2037)
at android.os.Parcel.readSparseArray(Parcel.java:1493)
at android.os.Parcel.readValue(Parcel.java:1828)
at android.os.Parcel.readMapInternal(Parcel.java:2008)
at android.os.Bundle.unparcel(Bundle.java:208)
at android.os.Bundle.getSparseParcelableArray(Bundle.java:1167)
at
com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:
1463)
at android.app.Activity.onRestoreInstanceState(Activity.java:843)
at android.app.TabActivity.onRestoreInstanceState(TabActivity.java:58)
at android.app.Activity.performRestoreInstanceState(Activity.java:815)
at
android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:
1096)
at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2641)


Has anybody seen this?

-- 

3. Samsung Adopts ARM鈥檚 Next Generat ion Mali-T604 GPU

4. Google Nexus S is the Samsung GT-i9020? - Engadget

5. Rockplaye

6. FROYO

7. Identify Google provided app