Re: [android-developers] Problem with fwrite onto sdcard

2009-12-07 Thread Dianne Hackborn
Be sure you are requesting the WRITE_SDCARD permission, which is needed for an application to be able to modify data in the SD card. On Fri, Dec 4, 2009 at 3:56 AM, KK krishnakumar.ramachand...@gmail.comwrote: Hi, I am very new to Android. I am trying the following code in the android ndk.

Re: [android-developers] Problem with fwrite onto sdcard

2009-12-07 Thread Krishnakumar Ramachandran
Hi Dianne, I am requesting WRITE_EXTERNAL_STORAGE permission. Is that enough or do i need some other permission? On Mon, Dec 7, 2009 at 1:52 PM, Dianne Hackborn hack...@android.com wrote: Be sure you are requesting the WRITE_SDCARD permission, which is needed for an application to be able

Re: [android-developers] Problem with fwrite onto sdcard

2009-12-07 Thread Dianne Hackborn
Sorry yes that is the one. You should probably be asking NDK questions on android-ndk, too. On Mon, Dec 7, 2009 at 12:27 AM, Krishnakumar Ramachandran krishnakumar.ramachand...@gmail.com wrote: Hi Dianne, I am requesting WRITE_EXTERNAL_STORAGE permission. Is that enough or do i need some

[android-developers] Problem with fwrite onto sdcard

2009-12-04 Thread KK
Hi, I am very new to Android. I am trying the following code in the android ndk. FILE* fp = fopen(/sdcard/test, wb) if(NULL == fp) { return errno; } int written = fwrite(Test, 1, 4, fp); if(4 != written) { return -1; } fclose(fp); return 0; I am trying this on emulator and I have created