Reputation: 223
In my Xamarin Android app I am storing screen shots in the following path System.Environment.SpecialFolder.MyDocuments. When I am running the app on windows simulator, where exactly this file get stored ? I searched almost my entire systen but no luck. I refered to many links on internet no luck again. where exactly I can see this data on windows 10 system. The file path I am setting it as using following code is string filepath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.MyDocuments)+"/Screen1.png";
while debugging I can see the value of filepath as "/data/user/0/ArcGISAndroid.ArcGISAndroid/files/Screen1.png"
When I am tryiing with A local directory in app I am getting follow error :{Java.IO.FileNotFoundException: C:\T\sampless.png: open failed: EROFS (Read-only file system) ---> Android.Systems.ErrnoException: open failed: EROFS (Read-only file system) --- End of inner exception stack trace --- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <3fd174ff54b146228c505f23cf75ce71>:0 at Java.Interop.JniEnvironment.
Is their a way in Xamarin.Android to store the files in local to cross check them ?
Upvotes: 1
Views: 3029
Reputation: 6905
You can push and pull files to a virtual sd folder from the SD card tab of the advanced tools options.
Upvotes: 1
Reputation: 9990
The file is not stored on the Windows but on the virtual machine that runs on it. You can't get it from Windows.
Upvotes: 0