View on GitHub

SitePoint-Android-Java-Example

Home / Implementation Guide / Permissions

Permissions

This section covers adding permissions for Bluetooth and Location services to your Android application.

Adding Permissions to AndroidManifest.xml

In the AndroidManifest.xml file, you will find the necessary permissions and features that must be declared. These include:

Refer to this file to ensure that all required permissions and features are included in your app’s manifest.

Requesting Permissions from an Activity

The example app demonstrates how to request permissions from an Activity. The PermissionsActivity.java file serves as the app’s splash screen and initiates the permissions requests.

This file includes both Javadoc and inline comments to provide helpful information regarding the process of requesting permissions.

Note: It is essential to request the necessary permissions at runtime, as required by the Android platform, to ensure your app functions correctly and adheres to user privacy and security guidelines.


Next Steps