Quantcast
Channel: Questions in topic: "filesystem"
Viewing all articles
Browse latest Browse all 35

Can an Android AAR plugin access Unity's Application.Persistentdatapath filepath?

$
0
0
Hello, I'm attempting to read a png file using an AAR plugin I created. The png file is stored via C# at the Application.Persistentdatapath filepath. I'm not getting any specific errors, because the failure to read the PNG seems to be happening on the AAR side. The AAR is a Java+NDK plugin that uses the STBI_Image library to load in the PNG from the given filepath. This whole process works when I manually store the PNG in the "/sdcard/Android/data/com.example.examplePlugin/files". But it does not read the PNG if it is stored in "file:///storage/emulated/0/Android/data/com.example/files/" (which is the filepath provided by Application.persistentdatapath).

Viewing all articles
Browse latest Browse all 35

Trending Articles



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