Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能说出 C# 的等价物是什么
Environment.GetFolderPath (Environment.SpecialFolder.Personal)
在安卓?
我使用 monodevelop 进行 android 开发。
您通常不需要它,因为在没有路径的情况下创建/读取文件等使用此目录:
public String getApplicationDataDirectory() throws Exception { return getApplicationContext().getPackageManager().getPackageInfo(getPackageName(), 0).applicationInfo.dataDir; }