Search code examples
c#uwpwindows-10windows-10-mobile

How to access Windows.Storage.ApplicationData.Current.LocalFolder on a Windows Mobile device?


During my app's runtime, I'm saving some data in txt file to location: Windows.Storage.ApplicationData.Current.LocalFolder On Windows 10 PC, I can easile read this file in C:\Users\marcin\AppData\Local\Packages[app id]\LocalState\ How can I access this file, when I run the app on a phone? When I connect my device to a PC, I don't see an option to access AppData folder.


Solution

  • To Access App Data, You need Device Portal first. Below are the instructions from MSDN.

    1. Head to the Settings App > Updates and Security > For Developers, and enable Developer Mode and Device Portal.
    2. Type the IP address displayed below the Device Portal options into your favorite web browser.

      • Make sure you’re on the same network, otherwise your browser won’t be able to find your phone.
      • You’ll also need to authenticate yourself with the device.
    3. Make sure you’ve got an app sideloaded (or sideload one now using the “Apps” page).

    4. Click on “File Explorer” to see the tool above.

    See This Link for Full info as to how to access App Data