well

here is the code for file update but this seems to work fine.

public void onClick(View v) {
                try {
                    BufferedWriter out = new BufferedWriter(new 
FileWriter("/sdcard/
data_file.txt", true));
                    out.write("A" + txtData.getText() + "," + "P" +
txtData2.getText() + "," + datetime.toString());
                    out.write("\r\n");
                    out.close();
        
Toast.makeText(getBaseContext(),        "Saved",Toast.LENGTH_SHORT).show();
                } catch (Exception e) {
                        Toast.makeText(getBaseContext(), e.getMessage(),
                                        Toast.LENGTH_SHORT).show();
                }

                        txtData.setText("");
                        txtData2.setText("");

        }



On Nov 2, 7:22 pm, Kostya Vasilyev <kmans...@gmail.com> wrote:
> The date / time conversion variations you posted all seem Ok.
>
> If the issue is with how you update the file, look for a bug there, not
> in date formatting.
>
> -- Kostya
>
> 02.11.2011 22:59, leigh8347 пишет:
>
> > Thank you but this did not work. Any other ideas
>
> > regards
>
> --
> Kostya Vasilyev

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