yes ...actually i closed fileconnection at three points( in different
if conditions ), but there was a condition i missed out...when I added
fileconnection close() at the end...it worked...
thanx for your help Bob Kerns.


On Mar 18, 3:50 am, Bob Kerns <r...@acm.org> wrote:
> 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

To unsubscribe from this group, send email to 
android-developers+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to