Mono (Xamarin) Android application path, how do get? I found one way, it look like better I found
string path = "";
System.Collections.IDictionary vars = System.Environment.GetEnvironmentVariables();
foreach (System.Collections.DictionaryEntry entry in vars)
{
if (entry.Key.ToString().Contains("HOME"))
path = entry.Value.ToString();
}
In your Android application you could use:
// Documents folder
string documentsPath = System.Environment.GetFolderPath(
System.Environment.SpecialFolder.Personal);
This will get you the path:
/data/data/YourAppName/files/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With