Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Access to "internal" storage

$
0
0

Hello helpful people!

I have been butting my head against the same issue that this person hit. I can write files to my "Personal" directory, but if I exit the program and restart it, they are gone. The device I am using does not have any "external" storage of any sort. If I attempt to write to the location specified by Android.OS.Environment.ExternalStorageDirectory, an exception is generated. (Yes the permission is set. This method DOES work on my boss's phone that has an SD card in it.)

The interesting thing is, this application also creates an SQLite database (or two), and those files persist just fine. But the small images that I download and try to save do not. I checked after they are downloaded, and the files do exist at that point. But they do not exist when I run the application again.

I saw that a couple of people commented that they were able to save to their System.Environment.SpecialFolder.Personal directory. If you are one of those people, is your device rooted? Is there a permission that I couldn't find, or some file setting I have to make?

Thank you for your help!

-Karen


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>