Also thought I'd point you at the StackOverflow solution, in case you
haven't seen it:
http://stackoverflow.com/questions/1992953/file-operations-in-android-ndk
> --
> You received this message because you are subscribed to the Google Groups
> "android-ndk" group.
> To post to this group, send email to andro...@googlegroups.com.
> To unsubscribe from this group, send email to
> android-ndk...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/android-ndk?hl=en.
>
Two thoughts:
(1) try plain fopen("/sdcard/test.mp3", "w+") to rule out any
weirdness with the string stuff
(2) print the return value from errno (LOGW("fopen(%s) failed: %s",
filename, strerror(errno));)
Hopefully these will provide a clue.
In the spirit of "is it plugged in", do an "echo blah > /sdcard/test ;
cat /sdcard/test" from the adb shell before running your test just to
make sure the SD card is mounted writable.
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.