Estimote / Android-Fleet-Management-SDK

Estimote Fleet Management SDK for Android
https://developer.estimote.com
MIT License
836 stars 451 forks source link

No BLE all the time #3

Closed EnerAnilom closed 10 years ago

EnerAnilom commented 10 years ago

I tried deploying Estimote's sample DistanceDemo sample application.
I am using Androidx86 running on VirtualBox. The demo can't seem to detect the BLE
It would always fail on OnStart Method.

// Check if device supports Bluetooth Low Energy.  
if (!beaconManager.hasBluetooth()) {  
    Toast.makeText(this, "Device does not have Bluetooth Low Energy",    Toast.LENGTH_LONG).show(); 
    return; 
} 

Just cannot get pass through that part. By the way, when I could see the Bluetooth device through the settings. I could always see the estimote beacon on the list and I could even pair the emulator with it.

wiktor commented 10 years ago

Bluetooth scanning through settings are not doing low energy scan, per Android help:

"Bluetooth Smart technology uses the low-energy feature of Bluetooth 4.0 and allows phones and tablets to connect to low-power sensors and other devices. To connect to a Bluetooth Smart device, you’ll need to use an app designed to be compatible with it; many device manufacturers develop dedicated apps for this purpose."

Android emulator has no support for Bluetooth as written in description.

EnerAnilom commented 10 years ago

Hi Wiktor, I understand what you mean but what puzzles me is the emulator can detect devices with bluetooth and it was even able to pair up with and estimote device.

image

wiktor commented 10 years ago

I checked sources of Settings app and they are performing classic Bluetooth scan only. Not sure why right now but some of low energy devices show there.

Nevertheless you need device with Bluetooth Low Energy in order to use Estimote beacons on Android.

EnerAnilom commented 10 years ago

Thanks. I appreciate the effort you have given to his issue of mine.