问题
I'm looking for the most simple and elegant way to share data between two separate Windows Phone Apps.
For example, I have two apps:
Input.app
- An app with an input field and a "Save"-buttonRead.app
- An app with a label and a "Read"-button.
The use case will be as follows:
- The user opens the
Input.app
, enters something in the input field and presses the "Save"-button. - The user closes
Input.app
. - The user opens
Read.app
and presses the "Read"-button. - The label will get filled with the data stored by the
Input.app
.
Note
I'm not looking for a solution where Input.app
calls the Read.app
(for example with Tasks
). Also, I'm not looking for a solution where Input.app
stores the data online, and Read.app
reads the data when the app is launched.
Is this even possible?
回答1:
No, not at the moment. Applications are sandboxed by default and you cannot break the sandbox. There are only two ways of communicating between the applications, but neither will work for you (using URI-s and file extensions).
Isolated Storage is isolated, hence the name. Unfortunately, there is no "Shared" storage, not even between the applications made by the same publisher.
Maybe this will change in the upcoming Windows Phone 8.1, who knows. If you want, you can go to http://wpdev.uservoice.com and request that particular feature.
来源:https://stackoverflow.com/questions/19948521/share-data-between-windows-phone-apps