In my experience with Android development, it's usually permission issues that mess you up. You request permission for READ_EXTERNAL_STORAGE, but it seems you are trying to write a file. Do you get write permission at some other time?
If you are only writing out text, then you can use the PrintWriter which is a class specifically made to easily write text to disk.
I think you should call flush() before close(). Though closing it may flush it for you, it's not guaranteed for all classes!
Does the Toast.makeText execute? Is the file path what you think it should be?
posted 1 week ago
I've adjusted it to WRITE_EXTERNAL_STORAGE, and I have the <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> in the xml manifest as well.
I'll check out PrintWriter, Im not familiar with it.
Thanks for the tip, I'll add flush() to be safe.
And It does not make it to the toast statement. RIght where I put the comment on line 25 is where it stops working.