No it shouldn't. :) Temp directories suck. When do you remove those files? If it's on the SD card, who owns them? Especially with a limited out of storage space, it's just a big nasty mess that is best to avoid.
So you can make your own temp files, and if you want them in internal flash then you have to put them in your own directory, where the system can appropriately bill them against your use of storage. And you can decide when to delete them, when you are done with them. On Oct 6, 1:17 pm, Jason Proctor <[EMAIL PROTECTED]> wrote: > thanks for the response. > > IMHO the Android filesystem should have a /tmp directory, which is > used for temporary files when /sdcard isn't connected to anything. i > realise that Android is very much a bazaar rather than a cathedral, > but advising people to put temp files wherever they want is asking > for a big mess. > > also IMHO, File.createTempFile() should *always* create a file which > is writable, regardless of underlying platform specifics such as a > lack of something connected to /sdcard. if no /sdcard, use /tmp. like > most other linuxen known to man. > > tx > j > > >Well... you can make a temp file wherever you want. Depending on > >what you want to do, either the SD card or your own internal data > >directory would make sense. The trade-offs are: > > >(1) The internal data directory is secure, so if you are putting ANY > >private information (passwords, mail messages, chat data, etc) in the > >temp file you should put it in internal storage. > >(2) The SD card generally has a lot more storage available, so if you > >are going to be writing multiple megabytes of data then the SD card is > >a better choice. > >(3) The SD card may not be available... but in that state the camera > >can't take pictures, etc, so it should be unlikely. --~--~---------~--~----~------------~-------~--~----~ 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] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

