save a temporary file to /cache

by paul2000 » Wed, 21 Apr 2010 02:30:31 GMT


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

--



save a temporary file to /cache

by paul2000 » Thu, 22 Apr 2010 02:47:29 GMT


 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

--


Sponsored Links


Other Threads

1. What options to enable in kernel config for android support?

Hi
Im new to android and
Im trying to compile android for a omap processor
i did a git clone and checkout the "origin/android-omap-2.6.29" branch
I did a defconf of the board and enabled the following options

"CONFIG_ANDROID = y
CONFIG_ANDROID_BINDER_IPC = y
CONFIG_ANDROID_LOGGER = m
CONFIG_ANDROID_RAM_CONSOLE = y
CONFIG_ANDROID_RAM_CONSOLE_ENABLE_VERBOSE = y
CONFIG_ANDROID_TIMED_GPIO = m
CONFIG_ANDROID_LOW_MEMORY_KILLER = y"

but getting a kernel panic during boot

[   26.113311] Freeing init memory:
188K
[   26.119781] Warning: unable to open an initial
console.
[   26.269561] Kernel panic - not syncing: Attempted to kill init!

Are there any other options i need to enable in the kernel ????

-montamer
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

i want install ----/root/mydroid/MyAndroid/development/samples/
PlatformLibrary/client
intermediated/pacage.apk  into emulator

but i got this error ----------------------
:~/mydroid/MyAndroid/out/target/product/generic/obj/APPS/
PlatformLibraryClient_intermediates# adb install package.apk
41 KB/s (3448 bytes in 0.080s)
        pkg: /data/local/tmp/package.apk
Failure [INSTALL_FAILED_MISSING_SHARED_LIBRARY]

so what i will for that
can any body tell me .................

by using using this i try to add some api in android source code but
my first step is not working properly.

thanks in advance ...............

--~--~---------~--~----~------------~-------~--~----~

3. Querying AlarmManager to determine if alarms are set

4. onConfigurationChanged-function

5. End call event

6. .GIF Support

7. does linear interpolator work?