C#- find files using Android device monitor from Android’s visual studio simulator
I have created files using my app and want to access files using the Android device monitor. This is the path I use
string filepath = Path.Combine(Android.OS.Environment.ExternalStorageDirectory.AbsolutePath,
Android.OS.Environment.DirectoryDocuments, "somefilename.txt")
As a result, when running on the visual studio simulator for Android, I get the following path:
/ storage / emulated / 0 / Documents
If I start ADM and use file explorer to find it, I can't find the folder. Because I'm on the simulator, I should be able to access the files I think. I only have the following similar (empty) folders:
storage/emulated/legacy
storage/sdcard0
Similarly, there is no file under data / data / appName / or data / media / 0. Am I using the wrong path? I don't want to use a real device because you have to remove and reconnect the cable every time to see if the file has changed
If I try to use ADB shell LS / storage / emulated / 0 / I get
The simulator is running Android 5.0 and the application has been compiled using Android 6.0
resolvent:
It seems that I found the right path to the symbolic link: