[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  wrote:
> 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 Lifehttp://mycollegelife.org
>
> On Apr 22, 2:20 am, paul2000  wrote:
>
>
>
>
>
> > any idea about this issue?  thanks!
>
> > On Apr 21, 11:49 am, paul2000  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 
> athttp://groups.google.com/group/android-developers?hl=en- Hide quoted text -
>
> - Show quoted text -

-- 
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


[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 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  wrote:
> any idea about this issue?  thanks!
>
> On Apr 21, 11:49 am, paul2000  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


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

2010-04-21 Thread paul2000
any idea about this issue?  thanks!

On Apr 21, 11:49 am, paul2000  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 at
http://groups.google.com/group/android-developers?hl=en