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. Users complaining of app running in background after it finishes executing Boot BroadcastReceiver



How are they determining this?

Android 2.0 has a new Settings page or something to list services, and I
haven't tried a BOOT_COMPLETED-and-done service to see how long the
service shows up.


You can try System.exit() and see what that does, but there could be
side-effects of not letting Android do its normal thing on shutdown.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Training: http://commonsware.com/training

-- 

2. Auto-closing soft input method

Hi,

Is there an easy way to have soft input methods automatically closed
as soon as the user taps _anywhere_ outside of the corresponding
EditText? Sometimes it's not very convenient if the soft input method
stays on the display when the user starts performing other actions in
the same activity.

The only way I've found so far is to set an OnTouchListener on my
EditText that sets a certain flag to true, and then override my
Activity's dispatchTouchEvents to check if that flag was modified
during the default dispatching of the touch event (i.e., to detect if
it was the EditText that was touched or if it was any other view) and
if it wasn't I call InputMethodManager.hideSoftInputFromWindow.
This approach seems a bit complex. Is there any better way, i.e., is
there any input method flag or similar that gives me this behaviour
automatically?

BR
/Henrik

-- 

3. killing the task in the application

4. Encrypting in PHP and Decrypting in Android

5. input box text validation

6. ADC 2 and Android Market Place Application Error

7. fwd: get the file path from a URI instance