Hello

in my application to download file I create a tmp file. Before sdk 0.9
used :

File temp = File.createTempFile("spherencyfile", "");

now in sdk 0.9 this line caght an exception and I have this line in
logcat
08-29 18:43:49.018: ERROR/FileDownload(7040): error: Cannot create: /
sdcard/spherencyfile49726
08-29 18:43:49.018: ERROR/FileDownload(7040): java.io.IOException:
Cannot create: /data/local/tmp/spherencyfile49726
08-29 18:43:49.018: ERROR/FileDownload(7040):     at
java.io.File.createNewFile(File.java:1133)
08-29 18:43:49.018: ERROR/FileDownload(7040):     at
java.io.File.createTempFile(File.java:1189)
08-29 18:43:49.018: ERROR/FileDownload(7040):     at
com.spherency.filetransfer.FileDownload.run(FileDownload.java:54)

I don't understand why he writes in sdcard. Before he writes in tmp
dir.

I have try another prototype of createTempFile to specify a base
directory, but i have same problem

Do you have an idea?



--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
Announcing the new Android 0.9 SDK beta!
http://android-developers.blogspot.com/2008/08/announcing-beta-release-of-android-sdk.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to