0

I want to create an SQLite database in which data is stored that the user entered in my app.

Reading this post, I opted for

string dir = Environment.GetFolderPath(Environment.SpecialFolder.Personal);

When I try to write to this folder, I get the following error:

System.UnauthorizedAccessException: Access to the path '/data/user/0/MyApp.Android/files' is denied.

Is it "normal" that this folder is not writable? I tried it on a clean Android device which developers functionality enabled.

If this folder should not be used, which one should I use instead?

Thank you very much!

Edit: I'm not sure yet if my problem is related to another post as I seem to have problems writing to ANY directory on the device.

tmighty
  • 10,734
  • 21
  • 104
  • 218

0 Answers0