3

Can anyone tell what is the C# equivalent of

Environment.GetFolderPath (Environment.SpecialFolder.Personal)

in Android?

I use monodevelop for android development.

Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
Chethan Shetty
  • 532
  • 6
  • 18
  • If the apps I have on my phone say anything, it's that nobody tries to use any sort of "standard location" to store anything...my personal favorite is the one dropping all sorts of crap right at the top level of my sdcard... – JerKimball Mar 22 '13 at 07:11

1 Answers1

0

You usually don't need it since creating/reading files etc without pathing them uses this directory:

public String getApplicationDataDirectory() throws Exception 
{
    return getApplicationContext().getPackageManager().getPackageInfo(getPackageName(), 0).applicationInfo.dataDir;
}
Simon
  • 14,407
  • 8
  • 46
  • 61