Can an Android device act as an iBeacon and figure out when other Android devices come in its range? Do those other Android devices need to have Bluetooth turned on?
If a customer comes into my shop and he doesn't have my app installed on his device, can iBeacon work, or must he install the app first? There are so many customers are visiting our shop daily, but if they don't have my app installed, does the iBeacon concept work?
Yes, Android devices can act as iBeacon. I achieve this using android 5.X and AltBeacon library. AltBeacon library from Radius Networks provide classes to build android as beacon emitter and receptor as well. Here is some piece of code that will work for android as iBeacon :
Hope it will helpful for user searching for android as iBeacon. jj
UPDATE: This is now possible on Android 5.0, and you can find open-source code for transmitting as a beacon in the 2.1+ version of the Android Beacon Library. There is also a full-featured version of a beacon transmitter in the Locate app in the Google Play Store. You can also transmit as a beacon on rooted Android 4.4.3 devices, but it requires an app installed with system privileges. For older OS versions, read below.
Here's an example of transmitting iBeacon with the Android Beacon Library:
Android 4.3 devices with BluetoothLE can see iBeacons but not act as iBeacons, because Android 4.3 does not support peripheral mode. Samsung Android devices contain a separate proprietary SDK but it also does not allow devices to act as iBeacons. See: Make Samsung Android device advertise as an iBeacon) iOS devices, however, can act as iBeacons.
Normally, iBeacon technologies are not intended for phones to see other phones. But you could do what you suggest on iOS by making a custom app that makes phones act as an iBeacon and look for other iBeacons around them. This would allow anybody with the app to see others with the same app nearby. All phones would need Bluetooth turned on.
Doing this on Android would currently only be possible with Samsung devices.To answer your second question, yes, a mobile device, both Android or iOS, must have an app installed to take advantage of iBeacons. Neither operating system currently does anything when it sees an iBeacon unless an app is installed that is specifically programmed to do something. So customers who arrive in a store must have an app already installed or they cannot interact with iBeacons.
Pure Android SDK. Zero 3rd party code - good for Open Source Due Diligence
Put your UUID Minor Mayor in those places in payload, but leave the first two bytes as it is.