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 ...