开发者

Getting the status of the phone

开发者 https://www.devze.com 2023-04-08 20:07 出处:网络
I have a remote service wich my phone is talking to. When Application_Deactivated gets called it doesn\'t have enough time to 开发者_如何学编程notify the service that is has gone into \'tombstoned\' s

I have a remote service wich my phone is talking to. When Application_Deactivated gets called it doesn't have enough time to 开发者_如何学编程notify the service that is has gone into 'tombstoned' state. How can my service know wether the device is active or tombstoned?

Edit: I could imagine polling the service with my phone and when the service doesn't receive any events it will set the phone's status to tombstoned. But that would mean a massive increase in traffic.

0

精彩评论

暂无评论...
验证码 换一张
取 消