On Apr 18, 11:23 am, Dianne Hackborn <
hack...@android.com> wrote:
> First don't use raw paths. You should use JNI to call Context.getFilesDir()
> to get the directory at which to put your files.
>
> Given you have the correct path, you can just use normal C APIs to read and
> write files there; nothing else special is needed.
>
>
>
>
>
>
>
>
>
> On Mon, Apr 18, 2011 at 8:48 AM, sofarsogood <
anuragbha...@gmail.com> wrote:
> > hi
>
> > I need to create/access files residing in my application's folder in
> > internal memory(data/data/com.myapp.myappname) from native code.
> > fopen() fails with permission denied error.
>
> > I am able to access/create files in the sd card, but it fails when I
> > write to internal memory. Can anybody suggest a solution?
>
> > Thx
>
> > --
> > 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.
>
> --
> Dianne Hackborn
> Android framework engineer