How to mount SD as USB mass storage programmatically

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


Sponsored Links
 Is there anyone know how to mount the SD as USB mass storage from an
android app programmatically when it is connected to a PC? It is
unacceptable for the use case I am working on to ask the user to go to
the "notification" screen to manually click "mount" button. Your help
will be highly appreciated.

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



Other Threads

1. read text from file

What do I do to be able to read all lines from a file? With this code
I have below I can only get the first line of the txt file when I use
mReadString later on.
Am I doing something wrong? Or is there another way?

Regards
Andr

File f = new File(Environment.getExternalStorageDirectory()
+"readme.txt");
FileInputStream fileIS = new FileInputStream(f);
BufferedReader buf = new BufferedReader(new
InputStreamReader(fileIS));
mReadString = buf.readLine();

-- 

2. add a scan barcode button to my webpage

Does anyone know how to add a scan barcode button to a webpage like
google has in the shopping page?  I am wanting to allow my clients
using a droid phone to press the button scan a barcode and post the
data back into my webpage.

any suggestions?

thanks JB

-- 

3. Lots of questions and no answers: upgrading <my device> from Android 1.6 to 2.0

4. can't display OpenGL and Camera together on nexus one/Milestone whereas it works fine on HTC Magic

5. can an updated version of an app try to restore using a bundle containing older data?

6. how to read a String into an EditText window?

7. SQLiteDiskIOException when performing CREATE INDEX