How to mount SD as USB mass storage automatically

by telematics » Fri, 06 Mar 2009 05:13:54 GMT


Sponsored Links
 I am developing an android app that will automatically mount the SD as
the USB mass storage when the G1 phone is connected to a PC via USB,
and automatically umount it when the USB is disconnected. I know to
how to create a broadcast receiver to receive  UMS_CONNECTED and
UMS_DISCONNECTED broadcast intents, but I don't know whic API I should
use to mount/umount the SD. Is there anyone can help me on this?

Thank you in advance.

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