[android-developers] Re: Fail to create a new file on a sdcard

2009-12-09 Thread Teo [GD API Guru]
Have you managed to do that? I'm very interesting in doing this myself... Something must have happened because what works previously doesn't anymore and breaks functionality for a lot of users. On Dec 3, 3:14 am, Tan saurabhtanej...@googlemail.com wrote: Hi all I have the same problem, the

[android-developers] Re: Fail to create a new file on a sdcard

2009-12-02 Thread Tan
Hi all I have the same problem, the code writes to emulator even if there is no permission and does not write to SD card even if there is permission WRITE_EXTERNAL_STORAGE. If it is not possible to write in system process then how can i modify my code? Here is the snippet that writes stuff File

Re: [android-developers] Re: Fail to create a new file on a sdcard

2009-12-02 Thread Dianne Hackborn
The system process can not access the SD card, period. And any questions about code in there should be on android-porting, thanks. On Wed, Dec 2, 2009 at 5:14 PM, Tan saurabhtanej...@googlemail.com wrote: Hi all I have the same problem, the code writes to emulator even if there is no

[android-developers] Re: Fail to create a new file on a sdcard

2009-11-12 Thread lei
I find the file that path to Environment.getExternalStorageDirectory() is not writable, how could I change it? On Nov 12, 2:06 pm, lei eirst...@gmail.com wrote: I do not know what is cause of failing to create a new file on a sdcard of G1, the code is below: File temp =

Re: [android-developers] Re: Fail to create a new file on a sdcard

2009-11-12 Thread Mark Murphy
lei wrote: I find the file that path to Environment.getExternalStorageDirectory() is not writable, how could I change it? Make sure your app has the WRITE_EXTERNAL_STORAGE permission. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training in

[android-developers] Re: Fail to create a new file on a sdcard

2009-11-12 Thread lei
Thanks, Mark. It's solved. The permission of WRITE_EXTERNAL_STORAGE is required in Android SDK1.6, also I find a link describe it: http://developer.android.com/sdk/android-1.6.html On Nov 12, 3:44 pm, Mark Murphy mmur...@commonsware.com wrote: lei wrote: I find the file that path to