Am unable to write to external storage in android. I do get the following stacktrace: 01-14 10:57:07.108: W/System.err(17380): java.io.FileNotFoundException:
/mnt/media_rw/extSdCard/SterlingPixels.apk: open failed: EACCES (Permission denied)
01-14 10:57:07.108: W/System.err(17380): at libcore.io.IoBridge.open(IoBridge.java:456)
01-14 10:57:07.108: W/System.err(17380): at java.io.FileOutputStream.<init>(FileOutputStream.java:87)
01-14 10:57:07.108: W/System.err(17380): at java.io.FileOutputStream.<init>(FileOutputStream.java:127)
01-14 10:57:07.108: W/System.err(17380): at java.io.FileOutputStream.<init>(FileOutputStream.java:116)
01-14 10:57:07.108: W/System.err(17380): at com.codename1.impl.android.AndroidImplementation.createFileOuputStream(AndroidImplementation.java:4258)
01-14 10:57:07.108: W/System.err(17380): at com.codename1.impl.android.AndroidImplementation.openFileOutputStream(AndroidImplementation.java:4210)
01-14 10:57:07.108: W/System.err(17380): at com.codename1.io.FileSystemStorage.openOutputStream(FileSystemStorage.java:263)
01-14 10:57:07.108: W/System.err(17380): at com.codename1.io.ConnectionRequest.readResponse(ConnectionRequest.java:783)
01-14 10:57:07.108: W/System.err(17380): at com.codename1.io.ConnectionRequest.performOperation(ConnectionRequest.java:440)
01-14 10:57:07.108: W/System.err(17380): at com.codename1.io.NetworkManager$NetworkThread.run(NetworkManager.java:263)
01-14 10:57:07.108: W/System.err(17380): at com.codename1.impl.CodenameOneThread$1.run(CodenameOneThread.java:60)
01-14 10:57:07.108: W/System.err(17380): at java.lang.Thread.run(Thread.java:818)
01-14 10:57:07.108: W/System.err(17380): Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
01-14 10:57:07.108: W/System.err(17380): at libcore.io.Posix.open(Native Method)
01-14 10:57:07.108: W/System.err(17380): at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
01-14 10:57:07.108: W/System.err(17380): at libcore.io.IoBridge.open(IoBridge.java:442)
01-14 10:57:07.108: W/System.err(17380): ... 11 more
I cant include "<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>"
in build hints, as this causes the build to fail on merging the manifests..so i assume the build system creates this permission correctly. Except it does not work. Or am i mistaken?