Paul, You cannot write to the top level 'cache' directory. You must write to the 'cache' directory in you application's package structure. I'm not using C so I can't give you an example there, but from java you can use your application's context to get the cache dir and use an io stream to write to it.
The file structure looks like this /data/data/your-package-name/cache --------------------------------------- Creator of My College Life http://mycollegelife.org On Apr 22, 2:20 am, paul2000 <hubao...@gmail.com> wrote: > any idea about this issue? thanks! > > On Apr 21, 11:49 am, paul2000 <hubao...@gmail.com> wrote: > > > > > Hi, > > > I created an android application. This application calls C native > > library which requires save a temporary file to /cache. However the > > permission for /cache is wrxwrx--- with uid=cache and gid=system. so > > the application is not allowed to save a file to /cache. > > > Any workaround? > > > Thanks for any info, > > > -Paul > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group. > > To post to this group, send email to android-developers@googlegroups.com > > To unsubscribe from this group, send email to > > android-developers+unsubscr...@googlegroups.com > > For more options, visit this group > > athttp://groups.google.com/group/android-developers?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en