WP7:在应用程序处于后台时编辑屏幕截图(Mango)

发布于 2024-11-18 18:42:45 字数 217 浏览 2 评论 0原文

我正在开发一个可以显示敏感用户数据的应用程序。

当用户将应用程序置于后台时,操作系统似乎会在应用程序运行时截取该应用程序的屏幕截图,并将其显示出来,以便当用户返回时,其状态会恢复。

我试图阻止在此屏幕截图中看到用户的信息。

我最初的想法是显示我的启动屏幕图像的弹出窗口,但它似乎没有在 ApplicationDeactivated 中呈现它。还有其他方法可以实现此目的吗?

I have an app that I have been developing that can display sensitive user data.

When the user backgrounds the app, the OS appears to take a screenshot of the app as it was running, and displays it so when the user returns, their state is restored.

I am trying to prevent the user's information from being seen in this screenshot.

My initial idea was to display a Popup of my splash screen image, but it does not seem to render it in ApplicationDeactivated. Is there any other way you might accomplish this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

分开我的手 2024-11-25 18:42:45

我不确定您是否正确分析了这一点。我不明白操作系统如何截取应用程序的屏幕截图并使用它来恢复状态。此外,如果操作系统确实做到了这一点,那么在提交过程中对应用程序的要求中,墓石就不会成为一个大问题。开发人员需要在退出时处理抓取和保存状态,并在再次启动时重新加载它。

如果您没有编写这个墓碑石刻的代码,那么您是否使用了对此内置支持的框架?您可以禁用逻辑删除,这样某些信息就不会被存储,事实上,如果这些数据如此敏感,您应该确保它不会被保存。但是,如果您保存它,请确保对其进行加密,以便其他任何人都无法检查保存的状态。不过,这在 Win Phone 上是不可能的,因为操作系统应该强制执行应用程序之间的边界。

I am not sure you are analyzing this correctly. I don't see how the OS could take a screenshot of an app and use that to restore state. Also, if it was true that the OS did that, Tomb Stoning wouldn't be such a big issue in the requirements for an app in the submission process. A dev needs to handle grabbing and saving state on exit and reloading it on start-up again.

If you didn't code this tomb stoning, are you using a frameowrk that has built in support for this? You could disable the tombstoning so certain pieces of information are not stored, and in fact if this data is that sensitive you should make sure it isn't saved. But, if you save it make sure you encrypt it so nothing else could examine the saved state. Although, that shouldn't be possible on Win Phone as the OS is supposed to enforce the boundries between apps.

绮筵 2024-11-25 18:42:45

收到微软的回复,表明这在Mango SDK中是不可能的;它可能会添加到该平台的未来版本中。

Received a response from Microsoft which indicates that this is not possible in the Mango SDK; it may be added into future releases of the platform.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文