- Home /
 
               Question by 
               Strangertoyourlife · Jan 16, 2019 at 04:51 PM · 
                androidfilepackageapplicationfilestream  
              
 
              File paths on Android
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!
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                