am trying to track down what is causing this issue on an Android app I am developing. I am running Android KitKat and I have a Nexus 10 with 2 accounts on it.
I am also using the Monodroid framework provided by Xamarin, so I am not using the Native Android SDK.
Whenever I run it through the main account it starts up without any problems.
However when I run the app through the secondary account, I get the following below.
System.UnauthorizedAccessException: Access to the path "data/myApp/files" is denied.
This happens when the CreateDirectory() function is called.
Can anyone give me a hint as to why this is doing this? I am stumped because all of the permissions I have on the manifest are enabled (from writing/reading to external storage) , as I said before it works great on the primary account of the Nexus 10, but not on the secondary account.
As far as I am aware this is a known bug, but just double checking if anyone came across this issue and rectified it?
many thanks.