This is a simple project for android studio to showcase the use of the bluenet library for android. The bluenet library for android can be found here.
The project shows the following steps:
The example shows to ways of how to scan for devices using the library:
To install the project follow these steps:
Clone this project to your disk
git clone https://github.com/dobots/android-bluenet-example
Clone the library into the project location
cd android-bluenet-example
git clone https://github.com/dobots/bluenet-lib-android.git bluenet
Make sure the folder of the library will be called bluenet
Import the project in Android Studio
File > New > Import Project ...
Choose the android-bluenet-example dir
The project shows by default the example where we scan through the library directly. If you want to see the example with the BleScanService instead, go to the AndroidManifest.xml and
Comment the activity MainActivity
Uncomment the activity MainActivityService and the service BleScanService
Build and run
The copyrights (2015) for this code belongs to DoBots and are provided under an noncontagious open-source license: