AndroidManifest.xml > AndroidStudio

In order to guarantee the right behaviour and optimize the performance of the ads, it's necessary to do some modifications on the AndroidManifest.xml file of your project. Let's see what you need to add.
(If you use other SDKs maybe you got some of the lines, you don't have to duplicate them, it must be ONCE on your AndroidManifest).

Permissions (Optional)

This is an optional permission, it improves the CrossPromotion matching as well as the Monetization revenue!

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

Application configuration (Activities)

Inside the application section you must add the following (if you don't have it already):

   <!-- AdActivity from Google Play Services, needed by Tappx -->
   <activity
    android:name="com.google.android.gms.ads.AdActivity"
    android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
    android:theme="@android:style/Theme.Translucent" />
<meta-data
    android:name="com.google.android.gms.version"
    android:value="@integer/google_play_services_version" />

Example AndroidManifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.tony.android.apptest4"
    android:versionCode="1"
    android:versionName="1.1">

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

    <application
        xmlns:tools="http://schemas.android.com/tools"
        tools:replace="android:label,android:allowBackup"
        android:allowBackup="true"
        android:label="@string/app_name"
        android:icon="@drawable/ic_launcher"
        android:theme="@style/AppTheme" >

        <receiver
                android:name="com.tappx.sdk.android.TrackInstallReceiver"
                android:exported="true">
        </receiver>

        <activity
            android:name=".StartLayout"
            android:label="@string/title_activity_banner_sample" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".MainRelativeLayoutNewSDK"/>
        <activity android:name=".MainRelativeLayoutAdmob"/>
        <activity android:name=".MainRelativeLayoutCross"/>

        <!-- AdActivity from Google Play Services, needed by Tappx -->
        <activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" android:theme="@android:style/Theme.Translucent" />
        <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
    </application>
</manifest>

AndroidManifest.xml > Eclipse

In order to guarantee the right behaviour and optimize the performance of the ads, it's necessary to do some modifications on the AndroidManifest.xml file of your project. Let's see what you need to add.
(If you use other SDKs maybe you got some of the lines, you don't have to duplicate them, it must be ONCE on your AndroidManifest).

Permissions

You need to add the following permissions so the SDK works properly:

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

This is an optional permission, improves the CrossPromotion matching as well as the Monetization revenue!

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

Application configuration (Activities)

Inside the application section you must add the following (if you don't have it already):

<!-- Tappx Activities -->
<activity
    android:name="com.tappx.sdk.android.AdActivity"
    android:configChanges="keyboardHidden|orientation|screenSize" />
<activity
    android:name="com.tappx.sdk.android.InterstitialAdActivity"
    android:configChanges="keyboardHidden|orientation|screenSize"
    android:theme="@style/Transparent" />
<activity
    android:name="com.tappx.sdk.android.VideoAdActivity"
    android:configChanges="keyboardHidden|orientation|screenSize" />

<service android:name="com.tappx.sdk.android.TrackInstallIntentService" />

<!-- AdActivity from Google Play Services, needed by Tappx -->
<activity
    android:name="com.google.android.gms.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
    android:theme="@android:style/Theme.Translucent" />
<meta-data
    android:name="com.google.android.gms.version"
    android:value="@integer/google_play_services_version" />

Complete AndroidManifest Example

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.tony.android.apptest.eclipse"
    android:versionCode="2"
    android:versionName="2.1" >

    <uses-sdk
        android:minSdkVersion="7"
        android:targetSdkVersion="23" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >

        <receiver
                android:name="com.tappx.sdk.android.TrackInstallReceiver"
                android:exported="true">
        </receiver>

        <activity
            android:name=".MainRelativeLayout"
            android:label="@string/title_activity_banner_sample" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <!-- Tappx Activities -->
        <activity
            android:name="com.tappx.sdk.android.AdActivity"
            android:configChanges="keyboardHidden|orientation|screenSize" />
        <activity
            android:name="com.tappx.sdk.android.InterstitialAdActivity"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:theme="@style/Transparent" />
        <activity
            android:name="com.tappx.sdk.android.VideoAdActivity"
            android:configChanges="keyboardHidden|orientation|screenSize" />

        <service android:name="com.tappx.sdk.android.TrackInstallIntentService" />

        <!-- AdActivity from Google Play Services, needed by Tappx -->
        <activity
            android:name="com.google.android.gms.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
            android:theme="@android:style/Theme.Translucent" />
        <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version" />
    </application>
</manifest>

Tappx © 2020