Delphi XE5 Android “Uses Permissions”

The permissions required by a Delphi XE5 Android application are defined through the Uses Permissions dialog. It is found under Project -> Options… [Shift+Ctrl+F11].

 

RAD Studio XE5 Android "Uses Permissions" Dialog

If you select other Targets besides Android then the list is blank, for now. By default the following common permissions are selected. If you do not select a permission then any calls you make that require that permission will fail. The “Internet” permission is required for any network access, even your local network.

If you scroll down the list you will see an Advanced node which contains permissions that are less commonly used permissions. For many apps you will never need to change these permissions, but your users may notice the “services that can cost money” warning next to Call phone and Internet permission request, so you may want to remove those.

The requested permissions are automatically added to the AndroidManifest.xml file, which is read by the Android operating system and Google Play store to know which permissions your app requested.

This entry was posted in Android. Bookmark the permalink.

6 Responses to Delphi XE5 Android “Uses Permissions”

  1. Dmitry Kuzmenko says:

    Do you know how to turn on ability to move application to the “sd card”? I see this button is disabled for XE5 apps, but enabled for most of apps at my Android 4.1.2 device.
    Tried to find this in options you wrote about, in manifest, but can’t find it. Is it ever possible?

  2. Jolyon Smith says:

    Dmitry, supporting installation to SD card isn’t related to permissions. It is governed by an “installLocation” element in the application manifest:

    http://developer.android.com/guide/topics/data/install-location.html

  3. Jim McKeeth says:

    @Dmitry: Just add the installLocation element that Jolyon linked to the AndroidManifest.template.xml file in your project folder. http://www.youtube.com/watch?v=OTpQdl6B39k

  4. Dario Novac says:

    I have an App using INTERNET in the dialog. However XE5 doesn’t include that in the manifest xml file. Of course I can add this manually, but everytime I change something it gets reseted.

    Any idea? is this a bug?

  5. Jim McKeeth says:

    @Dario: Check out XE5 Update 2, I just checked and it looks like that is fixed. http://docwiki.embarcadero.com/RADStudio/XE5/en/Release_Notes_for_XE5_Update_2

  6. Trevor says:

    Hi,

    I seem to be having an issue with deploying Android apps. When i deploy to the phone when the build config is debug the app installs and runs fine.

    As soon as i change the build config to application store the app stops working and all i get is a black screen.

    Has anyone seen this before.

    T.

Leave a Reply