1

I am an android UI developer and having problem with issue with USB and external storage device support on android. What I want to have is on plug-in USB/SD card, the storage items in the devices directly show up on screen. For example the modern Operating systems have this feature that we plug in our device and it just automatically shows the contents of the device on new window. I am implementing my UI on android API level 10 and my device is IMX reference kit which has android 2.3.4 installed.

I would be grateful if anyone could give specif suggestion or guideline. I already tried with external_storage.java class. but it only says that the APK is installed successfully. But no action launches on plug-in external device.

chandanmahmud
  • 171
  • 1
  • 7

1 Answers1

1

It's relatively easy: you need to intercept BroadcastReceiver for Intent.ACTION_MEDIA_MOUNTED event. And then inflate smth like dialog or message box.

Update: code to receive broadcast can be found for instance here

Community
  • 1
  • 1
Barmaley
  • 16,638
  • 18
  • 73
  • 146
  • Could you please post me the code and guide line to use the code for this purpose? Cause I tried this and plugged in external device, still android did not show me anything. Thanks in advance – chandanmahmud Nov 17 '11 at 07:00