Only thing I can state is that android.intent.action.MEDIA_MOUNTED is
for SD card being inserted... My guess is that for USB device
discovery you'll have to dig something more low-level.

On Dec 11, 8:45 am, lidemin <[email protected]> wrote:
> hi all,
>     now  i have ported the Android to a x86 platform.
> And i want to detect the USB plug-in.But follow the information about
> the android.intent.action.MEDIA_MOUNTED
> in the SDK's DOC, i can't receive the event of the USB's plug-in.
>
> i have checked my code and it can receive the other event ( ps:intent
> action) .
>
> Besides, in the CLI, i could mount the USB device to /sdcard but it
> couldn't mount automatically.
>
> have seen some source code about the mount and mountlistener and it
> should be effective.
>
> who can tell me what the problem is?  and my SDK's version is 1.5.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to