[mono-android] Dirs and files not visible to Windows Explorer
MihaMarkic
miha at rthand.com
Tue Jun 5 16:40:02 UTC 2012
Hi guys,
I am trying to write text files to a shared location in the way I could open
them from within Windows Explorer (which rules out private folder).
Here is the code
var file = GetExternalFilesDir(null);
string fileName = "Test.txt";
string filePath = Path.Combine(file.Path, fileName);
using (StreamWriter writer = new StreamWriter(filePath))
{
writer.WriteLine("You ou ou ");
writer.Flush();
}
Nothing fancy. And it gets the job done - it creates a folder under
/Android/data and writes the file into files subfolder. Everything is fine
except that I can't see directory nor file from Windows Explorer. It is
there (visible from both adb shell and within android device).
But if I create a file from any Android "explorer" I can see it on Windows
Explorer and the other way round as well.
Any idea? I am sure I am missing something obvious. Or not :-)
--
View this message in context: http://mono-for-android.1047100.n5.nabble.com/Dirs-and-files-not-visible-to-Windows-Explorer-tp5710155.html
Sent from the Mono for Android mailing list archive at Nabble.com.
More information about the Monodroid
mailing list