通过蓝牙连接唤醒 Windows Phone 8 应用程序? [英] Windows Phone 8 app wakup on bluetooth connection?

查看:42
本文介绍了通过蓝牙连接唤醒 Windows Phone 8 应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在未激活的 Windows Phone 8 应用中检测蓝牙连接并对其做出反应?

Is it possible in a Windows Phone 8 app that isn't active to detect Bluetooth connections and react to them?

我想构建一个应用程序,当手机连接到蓝牙设备时,它会立即执行一些操作.IE.进入设备范围.

I want to build a app the does some stuff as soon a the phone connects to the Bluetooth device. I.e. get in range of the device.

我意识到这可能不止一个问题.

I'm realizing that this might be more than one question.

一个.当应用程序未处于活动状态时,是否可以检测蓝牙连接.
湾如果检测到连接,是否可以弹出"应用程序?

a. is it possible to detect bluetooth connection when the app isn't active.
b. is it possible to "popup" the app if it detects a connection?

推荐答案

当应用程序处于后台模式时,任何类型的所有连接都会暂停.您的应用程序根本无法真正响应任何事件.

All connections of any kind are suspended when the application is in background mode. Your application cannot really respond to any events at all.

不幸的是,这是与操作系统隔离的沙盒应用模型的局限性.在后台时,它被挂起,没有传感器或连接.

Unfortunately, this is the limitation of the sandboxed app model which lives in isolation from the operating system. When in background, it is suspended and no sensors nor connections live.

这篇关于通过蓝牙连接唤醒 Windows Phone 8 应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆