Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Easily Control Android App Permissions In Delphi With Mobile Permissions Component

easily control application permissions with mobile permissions component

Since Android 6.0 Marshmallow, users can control the permissions needed by an application. And developers should maintain the accessibility of their applications by handling these permissions properly.

In this post, you’ll learn how to easily control android app permissions in Delphi using the Mobile Permissions Component and Android App Builder Software. More information about the Android Permission Module can be found on DocWiki. In DocWiki, you can also learn how to configure app permissions on the project in the IDE.

With Delphi FireMonkey you can control application permissions by creating proper functions to handle permission requests, permission results, and messages to show to the user.

Here is a simple example of how you can request permission using Delphi

[crayon-6742b077ce795147461166/]

But there is another approach to work with Android permissions. Mobile Permissions Component for Android helps you to write less code and manage easily. This component has the main purpose, to facilitate the request of resource permissions on Android. With just a few lines of code, it is possible to facilitate this work in mobile Android applications.

[crayon-6742b077ce79c694820781/]

Head over and check out the Mobile Permissions Component for Android on the GetIt portal and download the component within the IDE.

Exit mobile version