Problem on read/write from sdcard

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Problem on read/write from sdcard

Postby Ahmed Salem » Fri Jul 09, 2010 5:05 pm

:darrow: I'm trying to implement download/upload functions on android it work fine but with IOException can't access sdcard


i have try following code


Code: Select all
File routesRoot = Environment.getExternalStorageDirectory();
            if (!routesRoot.canWrite())
                System.out.println("can't write root");
            if (!routesRoot.canRead())
                System.out.println("can't read root");


And get poth can't read , write to sdcard now i search for solving that problem

while i have set permission
Code: Select all
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />


Can any one help or advice ? :(
Thanks,

----------------
Ahmed Salem
Java Develope
MUFIX Community
Ahmed Salem
Once Poster
Once Poster
 
Posts: 1
Joined: Fri Jul 09, 2010 1:21 pm

Top

Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: Exabot [Bot] and 8 guests