拦截Wifi和蓝牙启用/禁用事件

问题描述:

是否可以在Windows Phone 8上拦截Wifi和BT启用/禁用事件?

Would it be possible to intercept Wifi and BT enable/disable events on Windows Phone 8?

我需要找出启​​用或禁用wifi/蓝牙的时间.

I need to findout when wifi/bluetooth is enabled or disabled.

预先感谢

//bsengar

不,您不能那样做. Windows Phone的应用程序模型仅限于沙盒应用程序,无法创建服务风格的应用程序.

No, you cannot do that. The application model for Windows Phone is limited to sandboxed apps and there is no way to create a service-style application.

您只能在应用程序启动时检查此类事情.

You can only check such things on application startup.