[android-developers] making temporary files

2008-10-09 Thread Jason Proctor
OK i basically give in on the temporary file issue. i still think it's idealistic to expect applications to clean up their old temporary files *on startup*, but i'll admit that, as usual, developer discipline is the best solution to the temporary file, if not *any*, issue! on the subject of F

[android-developers] making temporary files

2008-10-07 Thread Jason Proctor
oh yes it should :-) ok so maybe the unconventional Android application lifecycle changes the game a bit wrt temporary files, in the sense that "system startup" (etc), with accompanying cleanup, doesn't happen that often. but still, trusting those applications to keep track of their temporary

[android-developers] making temporary files

2008-10-06 Thread Jason Proctor
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 askin

[android-developers] making temporary files

2008-10-03 Thread Jason Proctor
hi justin, thanks for the response. supposing i'm running on a real device and the user doesn't have an SD card. then what? thanks, j >You should put temporary files somewhere in /sdcard, as generally this >will have more available space than a device's internal storage. For >this to work

[android-developers] making temporary files

2008-10-03 Thread Jason Proctor
is there a good spot in the filesystem to park temporary files? i notice from rummaging around that there is no /tmp on this Linux box, and File.getTempFile() fails, with the error "can't create /sdcard/$filename". (and android error messages should be more informative in general, IMHO.) --~