[android-developers] Re: how to save a temporary file to /cache

2010-04-23 Thread paul2000
HI Chris. I have to save the file to /cache. not the cache under my appl. Thanks anyway. -Paul On Apr 22, 12:11 pm, theSmith chris.smith...@gmail.com wrote: Paul, You cannot write to the top level 'cache' directory.  You must write to the 'cache' directory in you application's package

[android-developers] Re: how to save a temporary file to /cache

2010-04-22 Thread paul2000
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

[android-developers] Re: how to save a temporary file to /cache

2010-04-22 Thread theSmith
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