Bluetooth Low Energy permissions

In Android project structure, there is a file named AndroidManifest.xml which contains a high level overview of the Android application. This file contains the information about the activities, services, receivers, providers, libraries, and permissions. It is essential to give explicit permissions of Bluetooth. This can be achieved by providing the following line of code in the Manifest file:

<uses-permission android:name="android.permission.BLUETOOTH" /> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />

This permission ensures that the application is able to access Bluetooth. Another important permission for the proper execution of Bluetooth Low Energy scanning is:

 <uses-permission ...

Get Building Bluetooth Low Energy Systems now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.