In my app i generate some .wav files. They are stored on the sdcard (PersistentPath + external write = true). I can see it with Eclipse but they are not showing up on Windows via USB.
With native Android you can use the code below to show files, is there a Unity method to do this?
MediaScannerConnection.scanFile(this, new String[] {path.toString()}, null, null);
This can be done from unity using the following code in Unity, source. In this example file_path is a string indicating the location of your *.wav file.
using (AndroidJavaClass jcUnityPlayer = new AndroidJavaClass ("com.unity3d.player.UnityPlayer"))
using (AndroidJavaObject joActivity = jcUnityPlayer.GetStatic<AndroidJavaObject> ("currentActivity"))
using (AndroidJavaObject joContext = joActivity.Call<AndroidJavaObject> ("getApplicationContext"))
using (AndroidJavaClass jcMediaScannerConnection = new AndroidJavaClass ("android.media.MediaScannerConnection"))
using (AndroidJavaClass jcEnvironment = new AndroidJavaClass ("android.os.Environment"))
using (AndroidJavaObject joExDir = jcEnvironment.CallStatic<AndroidJavaObject> ("getExternalStorageDirectory")) {
string path = joExDir.Call<string> ("toString") + file_path;
jcMediaScannerConnection.CallStatic ("scanFile", joContext, new string[] { path }, null, null);
}