locked
about metro style two question

    Question

  • sorry,i have two question.

    1. metro style app can be save any file in local?

    2.metro style app have any database in local?

    Tuesday, October 9, 2012 5:53 AM

Answers

  • So far I know,  There is a AppData folder in Windows Store Apps, where application save data about itself. There are several sub-folder like Local, Roaming with different purpose. All application data goes to these folder. AppData is only for Application data which is used by the application's itself not for customer documents.

    In Windows Store Apps, you can access certain file system locations like the app install directory, app data locations, and the Downloads, Documents, Picture Library  folder for accessing file.


    See this link   How to find the Install and App Data directories
    Tuesday, October 9, 2012 8:44 AM
  • See "File access and permissions in Windows Store apps"

    You have read-only access to your install directory obtained via

    Windows::ApplicationModel::Package::Current->InstalledLocation

    A local folder is a place where your Windows Store app can write and read data on the local machine obtained via

    Windows::Storage::ApplicationData::Current->LocalFolder 

    A roaming folder is a place where your Windows Store app can write and read data on the local machine that is 'roamed' across systems (so keep it small).

    Windows::Storage::ApplicationData::Current->RoamingFolder 

    This assumes the data you are writing is settings, cache files, etc. For user data, you want to use KnownFolder locations which requires a capability to access.

    • Marked as answer by Jesse Jiang Monday, October 15, 2012 5:16 AM
    Tuesday, October 9, 2012 6:58 PM

All replies

  • So far I know,  There is a AppData folder in Windows Store Apps, where application save data about itself. There are several sub-folder like Local, Roaming with different purpose. All application data goes to these folder. AppData is only for Application data which is used by the application's itself not for customer documents.

    In Windows Store Apps, you can access certain file system locations like the app install directory, app data locations, and the Downloads, Documents, Picture Library  folder for accessing file.


    See this link   How to find the Install and App Data directories
    Tuesday, October 9, 2012 8:44 AM
  • See "File access and permissions in Windows Store apps"

    You have read-only access to your install directory obtained via

    Windows::ApplicationModel::Package::Current->InstalledLocation

    A local folder is a place where your Windows Store app can write and read data on the local machine obtained via

    Windows::Storage::ApplicationData::Current->LocalFolder 

    A roaming folder is a place where your Windows Store app can write and read data on the local machine that is 'roamed' across systems (so keep it small).

    Windows::Storage::ApplicationData::Current->RoamingFolder 

    This assumes the data you are writing is settings, cache files, etc. For user data, you want to use KnownFolder locations which requires a capability to access.

    • Marked as answer by Jesse Jiang Monday, October 15, 2012 5:16 AM
    Tuesday, October 9, 2012 6:58 PM