Android:
// <AppHome>/files
string path = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
iOS:
// <AppHome>/Documents
string docFolder = Environment.GetFolderPath(Environment.SpecialFolder.Personal); // to meet Apple’s iCloud terms, content that is not generated by the user
// should be placed in the /Library folder or a subdirectory inside it
string libFolder = System.IO.Path.Combine(docFolder,"..", "Library");
WindowPhone:
// <AppHome>\local
string path = Windows.Storage.ApplicationData.Current.LocalFolder.Path;
网友评论