It's interesting that it tried to mount a USB device that was plugged in. I thought Android would only act as a USB device, not a USB host, as per this issue: http://code.google.com/p/android/issues/detail?id=738
Although there is a link on that page to some people using USB host mode on Android that's been ported to Openmoko phones. On Dec 11, 9:16 pm, lidemin <[email protected]> wrote: > thanks a lot for this message, and i followed this to test again. > > but after i inserted the SD card the system still had no message to > send out. > > and again i checked the info about the LOG in the CLI, found that the > "mountd" process had found the device ( like when i inserted the USB > device ) and tried to mount this device to "/sdcard" .However the LOG > had no more message about the mount result , and i didn't know > whether there is an error or not. I only had to check the "sdcard" > folder but found nothing in it. And i tried to mount this device to > this path manually and succeed. But still had no intent > (android.intent.action.MEDIA_MOUNTED ) to send out by system . > > did anyone get it( the system message about detecting the external > device ) on the mobile or the other devices? > > Or should i send this question to android-porting? And thank you all. > > On 12月12日, 上午4时29分, Paul Turchenko <[email protected]> wrote: > > > Only thing I can state is thatandroid.intent.action.MEDIA_MOUNTED is > > for SD card being inserted... My guess is that forUSBdevice > > 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 theAndroidto a x86 platform. > > > And i want todetecttheUSBplug-in.But follow the information about > > > theandroid.intent.action.MEDIA_MOUNTED > > > in the SDK's DOC, i can't receive the event of theUSB'splug-in. > > > > i have checked my code and it can receive the other event ( ps:intent > > > action) . > > > > Besides, in the CLI, i could mount theUSBdeviceto /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

