Quantcast
Channel: Questions in topic: "package"
Viewing all articles
Browse latest Browse all 690

File paths on Android

$
0
0
Hi there, I currently have a file (Data.xls) on my android device at: "/storage/emulated/0/Android/data/com.Company.AppOne/files/assets/Data.xls". I am trying to access the Data.xls with an application called AppTwo. However I cannot access it unless I change AppTwos package name to "com.Company.AppOne", which I cannot do as it overrides AppOne on my android device. I am now stuck on how to get the Data.xls. I currently have: 'MyAddress = new FileStream(Application.persistentDataPath + @"/assets/Data.xls", FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.ReadWrite); however if i change it to: MyAddress = new FileStream("/storage/emulated/0/Android/data/com.Company.AppOne/files/assets/Data.xls", FileMode.OpenOrCreate, FileAccess.ReadWrite, FileShare.ReadWrite); It cannot access the file. Any help or alternative means to do this would be appreciated!

Viewing all articles
Browse latest Browse all 690

Trending Articles



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