When you build an Android app by using Quantum Visualizer, an AndroidManifest.xml file is created in the app's corresponding dist folder. The file is located at WorkspaceName>/temp/<AppName>/build/luaandroid/dist. The manifest file provides essential information about your app to the Android operating system, and Google Play store.
The Android manifest file helps to declare the permissions that an app must have to access data from other apps. The Android manifest file also specifies the app’s package name that helps the Android SDK while building the app. The Android manifest file provides information such as activities, services, broadcast receivers, and content providers of an android application.
With Quantum Visualizer, you can define the following options in the AndroidManifest.xml file:
Supported screen sizes
Supported SDK versions: minimum, target, and maximum
Ability to send Push Notifications
Various permissions for the application
To modify the Android Manifest.xml file from Visualizer, follow these steps:
From the Project Explorer, click Project Settings. The Project Settings window appears.
Click the Native tab.
Click the Android sub-tab, and then scroll down to the Manifest Properties & Gradle Entries section.
Configure the Permissions, Tags, and Deeplink URL scheme tabs. More information on how to
to configure manifest properties such as Permissions, Tags,and Deeplink URL in the Android Manifest file. Here is an example of a basic Android Manifest file generated with default permissions.
An app must have certain permissions to access data from the other apps. By default, Quantum Visualizer enables and disables certain permissions in the AndroidManifest.xml file. When you build an application, an AndroidManifest.xml file is automatically generated for the app. This manifest file will contain permissions based on how you have configured those permissions. If you have not specified any permissions explicitly, default permissions would apply.
For more information on the AndroidManifest.xml file, refer App Manifest on the Android Developer site.
The following permissions are set to true and added by default:
These permissions are set to false by default. You can add the permissions according to the requirements.
Set Android Manifest Permissions
You can modify the permissions in the AndroidManifest.xml file based on the requirements of the application.
To set the permissions in the Android Manifest file, follow these steps:
In Quantum Visualizer, from the Project Explorer, click Project Settings. The Project Settings window appears.
Click the Native tab.
Click the Android sub-tab and then scroll down to the Manifest Properties & Gradle Entries section.
To enable permissions, select the permissions from the left pane and click Add >. For example, If you need to save images to an external storage device such as USB drive or SD card, add the WRITE_EXTERNAL_STORAGE setting.
Note: To select multiple permissions, hold the Ctrl key and click the permissions. To select continuously listed permissions, hold the Shift key and click the permissions.
To disable permissions, select the permissions from the right pane and click < Remove.
Click Finish. When you build the app, Quantum Visualizer generates the manifest file with the permissions that you specified.
If the app lists normal permissions in its manifest (permissions that don't pose risk to the user's privacy or the device's operation), the system automatically grants those permissions to the app.
If the app lists dangerous permissions in its manifest (permissions that could potentially affect the user's privacy or the device's normal operation), the app must explicitly request those permissions.
For more information on Android Manifest tags and their attributes, refer Manifest Elements
Deeplink URL Scheme
You can use the URL Scheme tab for Deeplinking. The values for Scheme/ port/ path/host/pathprefix/path pattern specified under the Deeplink URL tab can be used to deep-link to a particular URL directly.
For example, if a scheme is defined as https and a host is defined as www.example.com, the following entry will be added to the Android manifest.xml file under intent-filter tag of default activity.