Forum Xamarin.Android

Get Path of "App Bundle" or of my "content file"

Hi @all!

I have a Xamarin.Forms project and in my portable project i have added a file and set the Build Action to "Content". Now i wrote a interface which is implemented in each platform (android, iOS and UWP) to get me the path to the App bundle where this content file is.

On the UWP version of the interface implementation it looks like:
class FileSystemImplementation_UWP : IFileSystem
public string GetInstallationPath()
return $"{Package.Current.InstalledLocation.Path}{Path.DirectorySeparatorChar}";

But how would this look like in Android? I googled a lot, but i don´t have any idea which is the correct path to my content file.

Thank you guys very much for your help!


Sign In or Register to comment.