When trying to access Android Assets in version 4.0.4 with API level 15 through the emulator I get a permission denied exception.
I see this was a known defect and fixed 4.0.2 https://bugzilla.xamarin.com/show_bug.cgi?id=2440 However, if I create a brand new project and insert the following code I get the same Exception: string settingsPath = System.IO.Path.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal), "AboutAssets.txt"); if (!File.Exists(settingsPath)) { Stream myInput = Assets.Open("AboutAssets.txt"); Stream myOutput = File.Create(settingsPath); myInput.CopyTo(myOutput); myOutput.Flush(); myOutput.Close(); myInput.Close(); } This code works on the two devices we have access to, however it fails in the emulator. I am wondering if this was broken in the latest version? -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Bug-2440-Regression-in-Version-4-0-4-tp5547841p5547841.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
