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].
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.
- Access coarse location
- Access fine location
- Call phone
- Camera
- Internet
- Read calendar
- Read external storage
- Write calendar
- Write external storage
- Read phone state
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.
6 replies on “Delphi XE5 Android “Uses Permissions””
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?
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
@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
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?
@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
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.