You don't need a flush() if you do a close() on a FileOutputStream. It won't hurt, though. But close() on a FileOutputStream will flush() before it closes, if it needs to.
That's not necessarily true of every type of stream, however. I'd even advice establishing the habit of doing it (though I don't always follow that advice). But it's not the cause of the problem in this case. But if no close() is done either, then the data won't make it to the file, and would give his symptoms. On Mar 17, 1:47 am, westmeadboy <westmead...@yahoo.co.uk> wrote: > Having only skimmed your post, I would say you at least need a > filecon.flush() (and filecon.close()) at the end. -- 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 android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en