What do you mean by there's nothing oevr there? Objects written down
on a file would not be in a readable format. So you can't just use a
text reader to read the contents.

And if you mean that the file is empty, then the process of
serialization is what you should check first. Try with a normal Java
program and let us know if you have any problems.

Thanks and Regards,
Kumar Bibek

On Apr 26, 8:35 am, Tommy <droi...@gmail.com> wrote:
> Hi,
>
> I am trying to save an array list to a .txt file below is the code I
> am using, which runs without error but when I try to go to Astro file
> manager and browse the data folder there is nothing there.
>
> String filename = stationname.getText().toString() +
> System.currentTimeMillis();
>
>         FileOutputStream fos = openFileOutput(filename,Context.MODE_PRIVATE);
>         ObjectOutputStream out = new ObjectOutputStream(fos);
>         out.writeObject(report); //Report is the ArrayList that holds each of
> my station Reports.
>         out.close();
>
> Any advice would be greatly appreciated.
>
> Thanks for your time,
>
> Tommy
>
> --
> 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 
> athttp://groups.google.com/group/android-developers?hl=en

-- 
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

Reply via email to