-
Notifications
You must be signed in to change notification settings - Fork 1
Android Project Setup
Aleksandr Chatsky edited this page Nov 19, 2018
·
21 revisions
- You can download our SDK with all required libraries here.
- Unzip the archive to your app library folder (example: my_project\app\libs)
- Add all unzipped libraries in your app Gradle file (how to do that: read more)
Our Single SDK is composite of all top demand partner SDK’s and as a result, contains a lot of different libraries which requires multidex feature. You can learn more about multidex and how to enable it here.
Most of manifest settings will be added automatically by the Gradle manifest merger and following manifest elements need to add manually. Add elements that are between '' comments.
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="your.package.name">
<application
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name">
<activity
android:name=".MainActivity"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- Appmediation -->
<!-- Mobvista -->
<receiver android:name="com.mintegral.msdk.click.AppReceiver" >
<intent-filter>
<action android:name="android.intent.action.PACKAGE_ADDED" />
<data android:scheme="package" />
</intent-filter>
</receiver>
<!-- StatApp -->
<receiver android:name="com.startapp.android.publish.common.metaData.BootCompleteListener">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<!-- BAIDU -->
<meta-data
android:name="app_license"
android:value="your_baidu_license" />
<!-- Appmediation -->
</application>
</manifest>
P.S: To get your Baidu license key please contact your Appmediation manager or write to support@appmediation.com
P.S: If you are using AdMob version 17.0.0 or higher then you are required to specify a <meta-data>
tag with key com.google.android.gms.ads.APPLICATION_ID
in your AndroidManifest.xml
. Example:
<manifest>
<application>
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ADMOB_APP_ID"/>
</application>
</manifest>