简体   繁体   中英

WP7 Accessing phone files and folders

How to access the files and folders from the phones memory not application memory(ie isolated storage)?

It is not possible. Every app has its own directory and permissions to operate inside it. There is no chance to get to files outside that directory.

You can use launchers and choosers to get some data from other places (like contact list or photos) but you cannot get to that files directly.

I saw an option of loading a SQL database from the application install directory (not isolated storage). see http://blog.arsanth.com/index.php/2011/06/02/working-with-pre-populated-sql-ce-databases-in-wp7/ for details. This can be done using the connection string eg datasource='appdata:/db.sdf'; mode='read only' datasource='appdata:/db.sdf'; mode='read only' . You might be able to do something similar to read files from the Application Install directory.

there is something called IsolatedStorageExplorer -> http://wp7explorer.codeplex.com/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM