- Home /
CaptureScreenshot writing to Phone, but persistentdatapath linking to the external card.
I'm using CaptureScreentshot()
to get an image. But when I try to access it on an Android device it's giving me: Could not find file "/storage/emulated/0/Android/data/appname/screenshot.png"
When I go the external storage, it's not there, but rather on the phone storage. So why is persistentdatapath accessing something different?
My code is the following: byte[] Bytes_File = System.IO.File.ReadAllBytes(currentScreenshotPathname);
with thepathname obtained using: currentScreenshotPathname = System.IO.Path.Combine(Application.persistentDataPath, currentScreenshotName);
Is there anyway to make the persistenDataPath go to the phone storage rather than emulated to read the file? I've tried changing the WriteAccess
perimission to External
as well as Internal
in the player settings, but it's still the same.
Your answer
Follow this Question
Related Questions
Taking Screenshot and Reading Immediately Issue 0 Answers
Capture Screenshots in a Row 0 Answers
.pngs exported from game are blank. 0 Answers
Loading an asset into the game post-build 0 Answers
iOS playing audio from Documents folder 2 Answers