I've been developing this one app for a few months now with eclipse.
I've had no problem writing to the sdcard in the past. Now it just
creates an empty file when the following code is used:

try {
FileWriter fw = new FileWriter("/sdcard/shootme.txt");

BufferedWriter out = new BufferedWriter(fw);
out.write("kjhlkjgghdfdsfsgfghhjkjgfdfgf");
out.close();

} catch (IOException e) {
Toast.makeText(cntx, "Add Rider Failed!", Toast.LENGTH_SHORT).show();
}
Toast.makeText(cntx, "Added Rider! " , Toast.LENGTH_SHORT).show();

It runs fine and the last toast pops up like everything is fine... but
no... it's an empty file that got created!

I was just making code changes on what was written and all of a sudden
this happens. I did notice that when using WinImage to manage the
sdcard, the attributes were changed to Archive.

I deleted the avd and sdcard I was using and created a new one just in
case and it still happens

I tried to create a brand new app with one activity and the same
thing. All my other apps quit working too.

I even tried to use SuperCSV JAR and the same thing. It wrote once and
then it goes back to creating an empty file.

I tried changing machines to one that has never run eclipse and the
same thing

Mike

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to