2014-01-17 14 views
2

嗨我已經嘗試過IbeaconReference,但在edittext中看不到任何消息。RadiusNetwork Android庫和IBeaconReference不起作用

我在日誌中看到貓是什麼:

01-17 12:16:13.354: D/BluetoothAdapter(16608): startLeScan(): null 
01-17 12:16:13.359: D/BluetoothAdapter(16608): onClientRegistered() - status=0 clientIf=4 
01-17 12:16:13.404: D/BluetoothAdapter(16608): onScanResult() - Device=F9:70:D6:6F:1D:AA RSSI=-68 
01-17 12:16:13.599: D/BluetoothAdapter(16608): onScanResult() - Device=F9:70:D6:6F:1D:AA RSSI=-69 
01-17 12:16:13.804: D/BluetoothAdapter(16608): onScanResult() - Device=F9:70:D6:6F:1D:AA RSSI=-68 
01-17 12:16:14.009: D/BluetoothAdapter(16608): onScanResult() - Device=F9:70:D6:6F:1D:AA RSSI=-67 
01-17 12:16:14.209: D/BluetoothAdapter(16608): onScanResult() - Device=F9:70:D6:6F:1D:AA RSSI=-67 
01-17 12:16:14.414: D/BluetoothAdapter(16608): onScanResult() - Device=F9:70:D6:6F:1D:AA RSSI=-67 
01-17 12:16:14.464: D/Callback(16608): attempting callback via intent: ComponentInfo{com.radiusnetworks.ibeaconreference/com.radiusnetworks.ibeacon.IBeaconIntentProcessor} 
01-17 12:16:14.469: D/BluetoothAdapter(16608): stopLeScan() 
01-17 12:16:14.484: D/BluetoothAdapter(16608): startLeScan(): null 
01-17 12:16:14.489: D/BluetoothAdapter(16608): onClientRegistered() - status=0 clientIf=4 
01-17 12:16:14.634: D/BluetoothAdapter(16608): onScanResult() - Device=F9:70:D6:6F:1D:AA RSSI=-67 
01-17 12:16:14.819: D/BluetoothAdapter(16608): onScanResult() - Device=F9:70:D6:6F:1D:AA RSSI=-67 
01-17 12:16:15.029: D/BluetoothAdapter(16608): onScanResult() - Device=F9:70:D6:6F:1D:AA RSSI=-67 
01-17 12:16:15.239: D/BluetoothAdapter(16608): onScanResult() - Device=F9:70:D6:6F:1D:AA RSSI=-66 
01-17 12:16:15.444: D/BluetoothAdapter(16608): onScanResult() - Device=F9:70:D6:6F:1D:AA RSSI=-66 
01-17 12:16:15.594: D/Callback(16608): attempting callback via intent: ComponentInfo{com.radiusnetworks.ibeaconreference/com.radiusnetworks.ibeacon.IBeaconIntentProcessor} 
01-17 12:16:15.594: D/BluetoothAdapter(16608): stopLeScan() 
01-17 12:16:15.604: D/BluetoothAdapter(16608): startLeScan(): null 
01-17 12:16:15.609: D/BluetoothAdapter(16608): onClientRegistered() - status=0 clientIf=4 
01-17 12:16:15.659: D/BluetoothAdapter(16608): onScanResult() - Device=F9:70:D6:6F:1D:AA RSSI=-67 
01-17 12:16:15.859: D/BluetoothAdapter(16608): onScanResult() - Device=F9:70:D6:6F:1D:AA RSSI=-66 
01-17 12:16:16.064: D/BluetoothAdapter(16608): onScanResult() - Device=F9:70:D6:6F:1D:AA RSSI=-66 
01-17 12:16:16.269: D/BluetoothAdapter(16608): onScanResult() - Device=F9:70:D6:6F:1D:AA RSSI=-66 
01-17 12:16:16.474: D/BluetoothAdapter(16608): onScanResult() - Device=F9:70:D6:6F:1D:AA RSSI=-69 
01-17 12:16:16.684: D/BluetoothAdapter(16608): onScanResult() - Device=F9:70:D6:6F:1D:AA RSSI=-69 
01-17 12:16:16.719: D/Callback(16608): attempting callback via intent: ComponentInfo{com.radiusnetworks.ibeaconreference/com.radiusnetworks.ibeacon.IBeaconIntentProcessor} 
01-17 12:16:16.719: D/BluetoothAdapter(16608): stopLeScan()* 

方法didRangeBeaconsInRegion不叫。任何想法?

而且我已經加入這個我明顯啓動服務清單:

機器人:名字=「com.radiusnetworks.ibeacon.service.IBeaconService」

這是正確的?

+0

基於日誌,我看到:1. AndroidIBeaconService被檢測單個藍牙LE裝置2是重複地(雖然它不是從識別出它作爲iBeacon顯示日誌清楚。)嘗試從AndroidIBeaconService到您的應用進行範圍回調。你有三個問題:1.你是否在使用未經修改的參考應用程序? 2.您使用的是什麼類型的iBeacon? 3.如果您在Google Play商店中運行iBeacon定位應用程序,您是否可以看到此iBeacon? – davidgyoung

回答

0

謝謝我通過在清單中添加radiusnetwork網站中所述的內容來解決問題。

<service android:enabled="true" 
     android:exported="true" 
     android:isolatedProcess="false" 
     android:label="iBeacon" 
     android:name="com.radiusnetworks.ibeacon.service.IBeaconService"> 
    </service>  
    <service android:enabled="true" 
     android:name="com.radiusnetworks.ibeacon.IBeaconIntentProcessor"> 
      <meta-data android:name="background" android:value="true" /> 
     <intent-filter 
      android:priority="1" > 
      <action android:name="eu.reply.engage.example.blebeacons.DID_RANGING" /> 
      <action android:name="eu.reply.engage.example.blebeacons.DID_MONITORING" /> 
     </intent-filter> 
    </service>