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. unable to add a new layout xml file.

using eclipse 3.4.1 and also 3.5 and I cannot seem to add a new
layout .xml file.

i tried adding it externally using windows explorer, but got all these
errors.

[2009-08-21 00:01:54 - TestAndroid]     (skipping index file
'C:\workspace\TestProject\res\drawable\Thumbs.db')
[2009-08-21 00:01:54 - TestAndroid] res\layout\Test1.xml:
Invalid file name: must contain only [a-z0-9_.]
[2009-08-21 00:01:54 - TestAndroid] res\layout\Test1.xml:
Invalid file name: must contain only [a-z0-9_.]

then i tried right click on the layout folder, selected new Android
XML file and I got this --

The selected wizard could not be started.
  Plug-in com.android.ide.eclipse.adt was unable to load class
com.android.ide.eclipse.editors.wizards.NewXmlFileWizard.
  com.android.ide.eclipse.editors.wizards.NewXmlFileWizard

I tried both versions of eclipse, I tried uninstalling and
reinstalling the ADT plugin.  Nothing seems to be working!

tia.
--~--~---------~--~----~------------~-------~--~----~

2. RILD works abnormally after setting up APN via GPRS

Hi Mikkel,

I can run pppd now but it failed with "unrecognized option
'/dev/pts/1'" and "Couldn't attach to PPP unit 1: m".

Would you please tell me what is wrong with pppd?

I have found there are device nodes /dev/pts/0 and /dev/pts1 created
by gsm0710muxd.

I have tried the following methods:
1. /system/bin/pppd $*

2. /system/xbin/pppd /dev/pts/1 115200 mru 1280 mtu 1280 nodetach
debug dump defaultroute usepeerdns novj noauth novjccomp noipdefault
ipcp-accept-local ipcp-accept-remote connect-delay 5000

Thanks in advance!

Best Regards,

Edward

Attached pppd log:

E/pppd    ( 1034): unrecognized option '/dev/pts/1'
D/pppd    ( 1042): using channel 5
I/pppd    ( 1042): Using interface ppp0
I/pppd    ( 1042): Connect: ppp0 <--> /dev/pts/1
D/pppd    ( 1042): sent P
D/pppd    ( 1042): rcvd P
D/pppd    ( 1042): sent P
D/pppd    ( 1042): rcvd P
D/pppd    ( 1042): sent P
D/pppd    ( 1042): rcvd P
D/pppd    ( 1042): sent P
D/pppd    ( 1042): rcvd P
D/pppd    ( 1042): sent P
D/pppd    ( 1042): rcvd P
D/pppd    ( 1042): sent P
D/pppd    ( 1042): rcvd P
D/pppd    ( 1042): sent P
D/pppd    ( 1042): rcvd P
D/pppd    ( 1042): sent P
D/pppd    ( 1042): rcvd P
D/pppd    ( 1042): sent P
D/pppd    ( 1042): rcvd P
D/pppd    ( 1042): sent P
D/pppd    ( 1042): rcvd P
D/pppd    ( 1042): sent P
D/pppd    ( 1042): rcvd P
D/pppd    ( 1042): sent P
D/pppd    ( 1042): rcvd P
D/pppd    ( 1042): sent P
D/pppd    ( 1042): rcvd P
D/pppd    ( 1042): sent P
D/pppd    ( 1042): rcvd P
D/pppd    ( 1042): sent P
D/pppd    ( 1042): rcvd P
D/pppd    ( 1042): sent P
D/pppd    ( 1050): using channel 5
E/pppd    ( 1050): Couldn't attach to PPP unit 1: m
I/pppd    ( 1042): Modem hangup
I/pppd    ( 1042): Connection terminated.
E/pppd    ( 1059): unrecognized option '/dev/pts/1'
# D/pppd    ( 1068): using channel 6
I/pppd    ( 1068): Using interface ppp0
I/pppd    ( 1068): Connect: ppp0 <--> /dev/pts/1
D/pppd    ( 1068): sent P
D/pppd    ( 1068): rcvd P
D/pppd    ( 1068): sent P
D/pppd    ( 1068): rcvd P
D/pppd    ( 1068): sent P
D/pppd    ( 1068): rcvd P
D/pppd    ( 1068): sent P
D/pppd    ( 1068): rcvd P
D/pppd    ( 1068): sent P
D/pppd    ( 1068): rcvd P
D/pppd    ( 1068): sent P
D/pppd    ( 1068): rcvd P
D/pppd    ( 1068): sent P
D/pppd    ( 1068): rcvd P
D/pppd    ( 1068): sent P
D/pppd    ( 1068): rcvd P
D/pppd    ( 1068): sent P
D/pppd    ( 1068): rcvd P
D/pppd    ( 1068): sent P
D/pppd    ( 1068): rcvd P
D/pppd    ( 1068): sent P
D/pppd    ( 1068): rcvd P
D/pppd    ( 1068): sent P
D/pppd    ( 1068): rcvd P
D/pppd    ( 1068): sent P
D/pppd    ( 1068): rcvd P
D/pppd    ( 1068): sent P
D/pppd    ( 1068): rcvd P
D/pppd    ( 1068): sent P
D/pppd    ( 1076): using channel 6
E/pppd    ( 1076): Couldn't attach to PPP unit 1: m
I/pppd    ( 1068): Modem hangup
I/pppd    ( 1068): Connection terminated.
E/pppd    ( 1085): unrecognized option '/dev/pts/1'
D/pppd    ( 1093): using channel 7
I/pppd    ( 1093): Using interface ppp0
I/pppd    ( 1093): Connect: ppp0 <--> /dev/pts/1
D/pppd    ( 1093): sent P
D/pppd    ( 1093): rcvd P
D/pppd    ( 1093): sent P
D/pppd    ( 1093): rcvd P
D/pppd    ( 1093): sent P
D/pppd    ( 1093): rcvd P
D/pppd    ( 1093): sent P
D/pppd    ( 1093): rcvd P
D/pppd    ( 1093): sent P
D/pppd    ( 1093): rcvd P
D/pppd    ( 1093): sent P
D/pppd    ( 1093): rcvd P
D/pppd    ( 1093): sent P
D/pppd    ( 1093): rcvd P
D/pppd    ( 1093): sent P
D/pppd    ( 1093): rcvd P
D/pppd    ( 1093): sent P
D/pppd    ( 1093): rcvd P
D/pppd    ( 1093): sent P
D/pppd    ( 1093): rcvd P
D/pppd    ( 1093): sent P
D/pppd    ( 1093): rcvd P
D/pppd    ( 1093): sent P
D/pppd    ( 1093): rcvd P
D/pppd    ( 1093): sent P
D/pppd    ( 1093): rcvd P
D/pppd    ( 1093): sent P
D/pppd    ( 1093): rcvd P
D/pppd    ( 1093): sent P
D/pppd    ( 1093): rcvd P
D/pppd    ( 1093): sent P
D/pppd    ( 1101): using channel 7
E/pppd    ( 1101): Couldn't attach to PPP unit 1: m
I/pppd    ( 1093): Modem hangup
I/pppd    ( 1093): Connection terminated.
D/pppd    ( 1112): using channel 8
I/pppd    ( 1112): Using interface ppp0
I/pppd    ( 1112): Connect: ppp0 <--> /dev/pts/1
D/pppd    ( 1112): sent P
D/pppd    ( 1112): rcvd P
D/pppd    ( 1112): sent P
D/pppd    ( 1112): rcvd P
D/pppd    ( 1112): sent P
D/pppd    ( 1112): rcvd P
D/pppd    ( 1112): sent P
D/pppd    ( 1112): rcvd P
D/pppd    ( 1112): sent P
D/pppd    ( 1112): rcvd P
D/pppd    ( 1112): sent P
D/pppd    ( 1112): rcvd P
D/pppd    ( 1112): sent P
D/pppd    ( 1112): rcvd P
D/pppd    ( 1112): sent P
D/pppd    ( 1112): rcvd P
D/pppd    ( 1112): sent P
D/pppd    ( 1112): rcvd P
D/pppd    ( 1112): sent P
D/pppd    ( 1112): rcvd P
D/pppd    ( 1112): sent P
D/pppd    ( 1112): rcvd P
D/pppd    ( 1112): sent P
D/pppd    ( 1112): rcvd P
D/pppd    ( 1112): sent P
D/pppd    ( 1112): rcvd P
D/pppd    ( 1112): sent P
D/pppd    ( 1112): rcvd P
D/pppd    ( 1112): sent P
D/pppd    ( 1112): rcvd P
D/pppd    ( 1112): sent P
D/pppd    ( 1120): using channel 8
E/pppd    ( 1120): Couldn't attach to PPP unit 1: m
I/pppd    ( 1112): Modem hangup
I/pppd    ( 1112): Connection terminated.


localhost login:

localhost login:

localhost login: ff
Password:
D/pppd    ( 1131): using channel 9
I/pppd    ( 1131): Using interface ppp0
I/pppd    ( 1131): Connect: ppp0 <--> /dev/pts/1
D/pppd    ( 1131): sent P
D/pppd    ( 1131): rcvd P
D/pppd    ( 1131): sent P
D/pppd    ( 1131): rcvd P
D/pppd    ( 1131): sent P
D/pppd    ( 1131): rcvd P
D/pppd    ( 1131): sent P

# D/pppd    ( 1131): rcvd P
D/pppd    ( 1131): sent P
D/pppd    ( 1131): rcvd P
D/pppd    ( 1131): sent P

# D/pppd    ( 1131): rcvd P
D/pppd    ( 1131): sent P
D/pppd    ( 1131): rcvd P
D/pppd    ( 1131): sent P

# D/pppd    ( 1131): rcvd P
D/pppd    ( 1131): sent P
D/pppd    ( 1131): rcvd P
D/pppd    ( 1131): sent P
Login incorrect

localhost login: D/pppd    ( 1131): rcvd P
D/pppd    ( 1131): sent P
D/pppd    ( 1131): rcvd P
D/pppd    ( 1131): sent P
loD/pppd    ( 1131): rcvd P
D/pppd    ( 1131): sent P
D/pppd    ( 1131): rcvd P
D/pppd    ( 1131): sent P
D/pppd    ( 1131): rcvd P
D/pppd    ( 1131): sent P
gD/pppd    ( 1131): rcvd P
D/pppd    ( 1131): sent P
D/pppd    ( 1139): using channel 9
cE/pppd    ( 1139): Couldn't attach to PPP unit 1: m
I/pppd    ( 1131): Modem hangup
I/pppd    ( 1131): Connection terminated.






> "

3. where can I find the posts that I posted

4. Developing Facebook Apps for Android

5. odd issues with port 80

6. MediaRecorder API: preview is not happening and audio sounds muffled

7. Flash based games on Android