Android Manifest

This configuration file catalogues the intents of the application and defines the graphical appearance on the applications screen of the device. On the first level of the manifest files we find declared properties of the downloadable package. An important declared property here is the <uses-sdk> tag. Since we are about to build a package that makes use of the Jekejeke Runtime API, we need to specify a minimal API Level of 8. This is the current non-headless minimal API Level as documented in the installation notes of the Jekejeke Runtime.

<?xml version="1.0" encoding="utf-8"?>
manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="mobile.foo.bar"
      android:versionCode="1010"
      android:versionName="1.1.0">
<supports-screens android:largeScreens="true"
android:xlargeScreens="true"/>
    <uses-sdk android:minSdkVersion="8"
android:targetSdkVersion="28"/>
<!-- uses-feature android:name="com.sec.feature.spen_usp"
android:required="true"/ -->

On the next level we mention our application. Here we can define the label and the icon for our application. The label and the icon will be seen on the applications screen of the device, provided the application has a main activity:

    <application android:label="@string/deployandroid"
                 android:icon="@drawable/deployandroid">

On the last level we mention our activities. Each activity is mentioned with its associated Java class. The main activity is marked by an intent filter with an appropriate action and category. The non-main activity doesn’t need this filter:

        <activity android:name="example07.Results"
                  android:configChanges="screenSize|mcc|mnc|locale|touchscreen|
keyboard|keyboardHidden|navigation|screenLayout|fontScale|uiMode|orientation"
                  android:label="@string/deployandroid">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name="example07.Criterias"
                  android:configChanges=" screenSize|mcc|mnc|locale|touchscreen|
keyboard|keyboardHidden|navigation|screenLayout|fontScale|uiMode|orientation">>
        </activity>

We use a <supports-screens> tag in the manifest file. This is necessary since we go with a higher version of Android. We then us the screenSize option in the android:configChanges attribute in the main activity so that the application will be resizable by default. Since our ap-plication does not use any custom views the resizing can be automatically carried out. Finally the <uses-feature> tag would allow for upload in the Samsung store.

Kommentare