My app polls a directory on the SDcard for the appearance of new files that where dropped there by the user from Windows file explorer over the USB connection. When a new file appears, my app processes it, and then deletes it, however the file still shows up in Windows file explorer. I know the file is gone because it no longer appears in the DDMS file explorer, and my poller doesn't get triggered again.
I've tried playing around with MediaScannerConnectionClient, which helps with getting programatically created directories to appear, but does nothing to get files to disappear. If I refresh Windows explorer on the PC, the deleted files still show up. If I unplug the USB, wait for a minute for Windows to dismount the SDcard, and then plug the USB back in, the files are still there. However, if I soft reboot the device, the files are gone. This makes me think the problem is on the Android side. Any insights into how Android interacts with Windows file explorer would be appreciated - I would really like my users to have an accurate picture of what's on the SDcard, without needing to reboot Android. I'm running Android 3.2 on an Acer Iconia A500. My PC is running Windows XP. The files are .csv and .txt files. I'm using File.delete() to delete them. -- 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

