简体   繁体   English

PhoneGap Windows Phone应用无法恢复

[英]PhoneGap Windows Phone app failed to resume

my app build with phonegap running on Windows phone 7, it works fine. 我的应用程序是在Windows Phone 7上运行的带有phonegap的应用程序上构建的,运行良好。 But I find that it failed to resume from device sleep mode. 但是我发现它无法从设备睡眠模式恢复。 What should I do to debug this? 我应该怎么做才能调试呢?

Thanks in advance. 提前致谢。

You should familiarise yourself with the WP7 app lifecycle - PhoneGap apps can be suspended / resumed automatically, ie you do not need to write any code. 您应该熟悉WP7应用程序的生命周期 -PhoneGap应用程序可以自动挂起/恢复,即,您无需编写任何代码。 However, when they are tombstoned you need to save the state. 但是,在对它们进行逻辑删除后,您需要保存状态。 See this blogpost for details: 有关详细信息,请参见此博客文章:

http://www.scottlogic.co.uk/blog/colin/2011/10/tombstoning-with-phonegap-for-windows-phone-7-and-knockoutjs/ http://www.scottlogic.co.uk/blog/colin/2011/10/tombstoning-with-phonegap-for-windows-phone-7-and-knockoutjs/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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