是否BluetoothLeAdvertiser上的Nexus 5的工作与Android 5.0? [英] Does BluetoothLeAdvertiser work on a Nexus 5 with Android 5.0?
问题描述
我的闪动的Nexus 5至Android 5.0 preVIEW释放锤头lpx13d后,OS报告说,它不再支持蓝牙LE广告。如果调用:
After flashing my Nexus 5 to the Android 5.0 preview release hammerhead-lpx13d, the OS reports that it no longer supports Bluetooth LE advertising. If you call:
((BluetoothManager) this.getSystemService(Context.BLUETOOTH_SERVICE))
.getAdapter().getBluetoothLeAdvertiser()
总是返回null。此外,新的方法:
always returns null. In addition, the new method:
((BluetoothManager) this.getSystemService(Context.BLUETOOTH_SERVICE))
.getAdapter().isMultipleAdvertisementSupported()
总是返回false
always returns false
用于返回一个有效的对象上的第一款Android大号preVIEW发布了Nexus 5在6月份的第一个方法。它不再存在,闪烁的最新更新之后。
The first method used to return a valid object on the first Android L preview release for the Nexus 5 back in June. It no longer does, after flashing the latest update.
有谁看到这样呢?
编辑:这已转载至少有一个人,谁与谷歌在这里开了一个问题:<一href="https://$c$c.google.com/p/android-developer-$p$pview/issues/detail?id=1570">https://$c$c.google.com/p/android-developer-$p$pview/issues/detail?id=1570
This has been reproduced by at least one person, who opened an issue with Google here: https://code.google.com/p/android-developer-preview/issues/detail?id=1570
推荐答案
不幸的是,从谷歌官方的回答是否,Nexus的5不再支持广告。
Unfortunately, the official answer from Google is no, the Nexus 5 no longer supports advertising.
我们在Android的5.0棒棒堂推出BLE外设模式。 Nexus的6和 的Nexus 9是支持BLE前两个生产的Nexus设备 外设模式。由于硬件芯片的依赖,老年人的Nexus 设备(4/5/7)将不会对棒棒糖访问该功能。
We introduced BLE peripheral mode in Android 5.0 Lollipop. Nexus 6 and Nexus 9 are the first two production Nexus devices that support BLE peripheral mode. Due to hardware chipset dependency, older Nexus devices (4/5/7) will not have access to the feature on Lollipop.
请参阅评论#52问题1570由danielho ... // @ google.com:BLE广告模式不工作 <一href="https://$c$c.google.com/p/android-developer-$p$pview/issues/detail?id=1570">https://$c$c.google.com/p/android-developer-$p$pview/issues/detail?id=1570
See Comment #52 on issue 1570 by danielho...@google.com: BLE advertise mode not working https://code.google.com/p/android-developer-preview/issues/detail?id=1570
这是说,我已经证实,广告支持的的Nexus平板电脑9。看到这里的细节:<一href="http://developer.radiusnetworks.com/2014/11/18/beacon-transmission-with-android-5.html">http://developer.radiusnetworks.com/2014/11/18/beacon-transmission-with-android-5.html
That said, I have confirmed that advertising is supported by the Nexus 9 tablet. See here for details: http://developer.radiusnetworks.com/2014/11/18/beacon-transmission-with-android-5.html
这篇关于是否BluetoothLeAdvertiser上的Nexus 5的工作与Android 5.0?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!