I'm having a weird problem with my Samsung Galaxy Nexus, where files created and written to in my application are displaying fine when accessed on the phone itself (via ES File Explorer), but when I try to view the same files on my PC (with phone connected via USB), they show up as having 0 bytes (and empty when opened).
These should be normal text files, which I am creating using new File(dir, filename) and writing to using the write method of PrintWriter. I'm also adding the new files to the content database using MediaScannerConnection.scanFile.
I've used basically the same code in previous applications (>6 months ago) without any issues, so I'm really confused as to why it's not working now. Has anyone had similar problems?
UPDATE:
Still trouble-shooting this...two more observations have me utterly confused:
I tried accessing the same files on another PC, and they worked fine. This had me thinking it could be some driver issue, but that would still be odd because I haven't changed the driver at all (I never experienced this issue earlier).
I tried creating files using a different application that I previously created. It uses basically the same FileIO class for file creation, etc. No such issues experienced with this application.