Hi,

I've a problem to read on an apk File.

I've created my sdcard with command 'mksdcard ...'

I execute this code :

        File tmpdir = new File(tmpdirpath+name);
                if (!tmpdir.exists()) {
                        boolean b = tmpdir.mkdirs();
                } else {
                        if (!tmpdir.isDirectory()) {
                                throw new RuntimeException("here : the tmp dir 
conflicts");
                        }
                }

with name = name of my apk file.

My file is correctly  created on my temporary directory on /sdcard,
but when i try to read it, i've not the permissions.

My permissions are '- - - - r w - r w -'

I tried to change this permission with

       #adb shell
       # chmod 777

There is no error but my permissions are always the same  '- - - - r w
- r w -'

So in my application, i've the exception :

04-28 14:56:16.296: ERROR/dalvikvm(231): Can't open dex cache '/data/
dalvik-cache/
[email protected]@[email protected][email protected]':
No such file or directory
04-28 14:56:16.296: INFO/dalvikvm(231): Unable to open or create cache
for /sdcard/.tmpdir/org.python.pycode._pyx0/
org.python.pycode._pyx0.apk
04-28 14:56:16.306: WARN/System.err(231): java.io.IOException: unable
to open DEX file
04-28 14:56:16.326: WARN/System.err(231):     at
dalvik.system.DexFile.openDexFile(Native Method)
04-28 14:56:16.336: WARN/System.err(231):     at
dalvik.system.DexFile.<init>(DexFile.java:55)
04-28 14:56:16.346: WARN/System.err(231):     at
dalvik.system.DexFile.<init>(DexFile.java:41)
04-28 14:56:16.355: WARN/System.err(231):     at
org.python.debug.FixMe.getClassByName(FixMe.java:93)


Some help, please !


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to