File/Folders Created By App Are Not Visible By Android File Transfer: Any Solution?

The problem is best described by this thread on StackOverflow:

http://stackoverflow.com/questions/15007139/android-file-transfer-cannot-see-a-folder-created-by-app

"My app creates a folder and creates a file in it (the permissions exist in AndroidManifest.xml), writes some data into this file. File exists, I can access it using standard file manager in my android device. It shows many folders, including my folder and I can even see the contents of my file on the device.

But the problem is that “android file transfer” shows me all other folders, but not my folder and my file. I even tried create just a single file, not a directory. Same result.

Unplugging the device or re-launch of “android file transfer” didn’t help.Maybe “android file transfer” is broken tool?"

 

The solution on stack overflow refers to native code:

“On Android 3.0+, you need to have your file be indexed by the media scanner before it will be visible over MTP to your Mac. The static scanFile() method on MediaScannerConnection is your best option IMHO.”

is it possible to do something like this in Corona?

Thanks

 

Android has their file system locked down.  About the only way to get a file out of a corona app and into something else is with the media.save() API call but that’s really for photos.

The media scanner just makes the content in the photo albums available.

Android has their file system locked down.  About the only way to get a file out of a corona app and into something else is with the media.save() API call but that’s really for photos.

The media scanner just makes the content in the photo albums available.