I have a Windows 10 universal app that is running on a Windows 10 Mobile device. I noticed from the Windows 10 Mobile device, it does have a file explorer but it limits you to only see certain "Known Folders" such as music, documents, downloads, etc... and that is all.
Furthermore, when I plug the device into my development machine via USB, I can browse the device but again, only the Known Folders above.
In my app, I am writing to a log file and that log file is stored to LocalStorage, under a folder for my app name, for example:
var dataPath = ApplicationData.Current.LocalFolder.Path;
I simply need to browse MY LOG FILE, that MY APP CREATES, in MY APP FOLDER. I read about a ton of, in my opinion hacks, to get access to this file/folder. For example, there are some third party applications that still mainly claim to target Windows Phone 8/8.1 but will still technically work for 10 such as:
Windows Phone Power Tools
Isolated storage spy
etc....
Then I also read articles on how to use a file in Pictures (or voice recording) and go to file properties to then gain access to the root or to create a root shortcut on the development machine and copy it to the mobile device, however, these are typically a year or more old and no longer work on my device (I suspect MS patched these hacks).
So, all that said, I would like to see a good way to access the root drive for development, or at least my app folder in the LocalFolder so I can access my files (such as logs or the sqlite db file). Maybe there is a way already but my google searches haven't turned anything up just yet.
Thanks!
As you've known, we can use some third party tools like IsoStoreSpy or Windows Phone Power Tools to access Isolated Storage. Although they are designed for Windows Phone 8 & 8.1, but they can also be used for Windows 10 Mobile. With these two tools, we can access LocalFolder, TemporaryFolder and RoamingFolder. For more info, see similar question: Accessing storage of simulator/device while debugging.
Besides these third party tools, there is also build-in support in Windows 10. We can use App File Explorer to view and manipulate files stored by your sideloaded apps. This is a new, cross-platform version of the Isolated Storage Explorer from Windows Phone 8.1. This tool should be able to work no matter your application is deployed in Debug mode or Release mode. But please note that this is a new tool added to Windows Device Portal in the Anniversary Update.
To use this feature, we must enable Device discovery and Device Portal. Then we can access application storage in web browser like following:
For more info, please see Device Portal for Mobile and Using the App File Explorer to see your app data. Also the similar question: Windows 10 Mobile: how can I see inside on my app folder? might be helpful.
I had a similar problem to solve few months back. I ended up doing two things:
I've implemented a 'Send Logs' button in settings that would upload logs to a ftp server. Actually it was a bit more than that, all installations of this app were managed by a central server and there was 'Get logs' button on the server side that would send request via push channel to the device to get the logs.
Got my hands on a Interop-unlocked device that I would use if the app was in a state that would make first option not possible.
I know that I can backup Raspbian image using Win32 Disk imager, but seems Win32 Disk imager is not working for Windows IoT core, is there any better way to backup installed image file of Windows IoT core ?
I think the tool you need here is Windows Imaging and Configuration Designer.
Main article: https://msdn.microsoft.com/en-us/library/windows/hardware/dn916113(v=vs.85).aspx
Getting started: https://msdn.microsoft.com/en-us/library/windows/hardware/dn916112(v=vs.85).aspx
With this you can create a base image that can be reused. It might not do exactly what you need when creating a backup of something you've already created, but it will allow you to customise a new image from scratch.
Here's the download for the Windows Assessment and Deployment Kit which includes ICD: https://developer.microsoft.com/en-us/windows/hardware/windows-assessment-deployment-kit
Note; you'll need local admin rights to do most of this. Just in case you aren't already.
Hope this helps.
I want stored some file to can use between 2 apps in windows phone 8.1 (WinRT- Universal). Like use keychaninstore in ios or write to same file in same folder in storage as Android.
How i can do this?
Thanks for all support!
There is no way share files between two Windows Phone 8.1 apps. The functionality of shared folders (for apps from the same publisher) is coming in Windows 10. The best you can do now is to use OneDrive or some other online storage.
If you mean sharing a file between the same app on Windows Phone 8.1 and Windows 8.1, then use ApplicationData.RoamingFolder.
Is there an API or any other way to sync a particular format of file between Windows Phone and SkyDrive? I've tried just downloading and uploading files but it doesn't work as I want. I want them to be always in sync.
Yes. Here are a couple links on the subject:
http://windowsteamblog.com/windows_live/b/windowslive/archive/2011/12/07/skydrive-apis-for-docs-and-photos-now-ready-to-cloud-enable-apps-on-windows-8-windows-phone-and-more.aspx
http://www.itproportal.com/2011/12/13/microsoft-skydrive-api-now-available-third-party-windows-phone-apps/
http://www.windowsphonegeek.com/news/Using-SkyDrive-in-your-Windows-Phone-applications-part-1
I have been working on a Windows Mobile app for a little while now (havnt done much work with mobile before) and i have been having a problem when deploying to my mobile, at the moment i can only run the application once then if i want to run it again i have to do a soft reset.
Maybe im deploying wrong? (pretty sure i am actually, im pretty much just copying the .exe file across and running it.)
What is a better way for me to deploy my application so that it can run more than once per reset?
At the moment when i try to run it for the 2nd time on my mobile nothing at all happens (yet it works fine using the Windows Mobile 6.1 emulator)
CAB files are the preferred way to deploy Windows Mobile applications. Check out this MSDN article:
CAB Files for Delivering Windows Mobile Applications
I've had some success with putting a CAB file on a web server and simply http'ing to it to download and install the CAB.