I was trying to create and write in a file on SD cards, but some time i was not able to do it. What I found that in Application menfest file, uses permissions tag has to be carefully placed as per original structure of menifest file. Thr Eclipse IDE and its GUI , if you set the use permission tag for allowing writing on external storage, it places it under application tag, which i think should not be there.
code should be like this <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" ------------ <application android:icon="@drawable/icon" android:label="@string/ app_name"> -------- </application> <uses-sdk android:minSdkVersion="4"> <android:permission="android.permission.WRITE_EXTERNAL_STORAGE" /> </manifest> Pl try as above and file writing on sdcard is possible -- You received this message because you are subscribed to the Google Groups "Android Security Discussions" 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-security-discuss?hl=en.
