Re: [android-beginners] Problem when writing a file that was deleted in meantime or not enough space left on SDCARD

2010-04-27 Thread TreKing
On Tue, Apr 27, 2010 at 10:37 AM, vanesa wrote: > How can I avoid such situation ? > Maybe try closing the stream and catching any exceptions that get thrown there? - TreKing - Chicago transit track

[android-beginners] Problem when writing a file that was deleted in meantime or not enough space left on SDCARD

2010-04-27 Thread vanesa
My application downloads a file from internet and saves it on the SDCard. I use FileOutputStream class to write data in the file. I encountered a problem when other application deletes the file or fills the SDCARD while the applications writes the file. "write" method doesn't throw any exception, f