Share data between Windows Phone apps

杀马特。学长 韩版系。学妹 提交于 2020-01-06 02:26:10

问题


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:

  1. Input.app - An app with an input field and a "Save"-button
  2. Read.app - An app with a label and a "Read"-button.

The use case will be as follows:

  1. The user opens the Input.app, enters something in the input field and presses the "Save"-button.
  2. The user closes Input.app.
  3. The user opens Read.app and presses the "Read"-button.
  4. 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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!