We don't recommend using File.createTempFile().  It is preferred that
you use the Context APIs to create files in your local filesystem
sandbox.

Temp files are no longer created in /tmp because we only have a
limited amount of space, and want to be able to account and manager
for the storage used for each application, which is why you are only
allowed to write in your sandbox.  (In fact I think /tmp may have been
a RAM file system in M5, which obviously is not something we want
applications making use of like that.)

On Aug 29, 2:48 pm, barbapapaz <[EMAIL PROTECTED]> wrote:
> 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 [email protected]
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