Hi

I am having trouble creating a text file on the sdcard.

Here's the code I'm trying to run:
File file = new File(Environment.getExternalStorageDirectory() +
"log.txt");
//file.mkdirs();
try {
        file.createNewFile();
} catch (IOException e1) {
        e1.printStackTrace();
}

I have added this line to the end of my manifest file (right before </
manifest> ).

<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

>From all the past threads I've seen about this problem in this forum,
adding the permission fixes the problem. However, this doesn't seem to
change anything in my code.

Any suggestions welcome,

Vidur

-- 
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

Reply via email to