android - AdMob error: "You must have AdActivity declared in AndroidManifest.xml with configChanges" -
i have looked @ similar questions , did suggestions , still getting message on phone: "you must have adactivity declared in androidmanifest.xml configchanges".
here have in manifest:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="..." android:versioncode="1" android:versionname="1.0"> <uses-sdk android:minsdkversion="8" android:targetsdkversion="17"/> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:allowbackup="true"> <activity android:name="..." android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> <activity android:name="com.google.ads.adactivity" android:configchanges="keyboard|keyboardhidden|orientation|screenlayout|uimode"/> <service android:enabled="true" android:name="..." /> </application> <uses-permission android:name="android.permission.internet" /> <uses-permission android:name="android.permission.wake_lock" /> <uses-permission android:name="android.permission.access_network_state"/> </manifest>
is there else should do? please note: have looked @ other similar questions, , none of answers solves problem. help.
change manifest to
<activity android:name="com.google.ads.adactivity" android:configchanges="keyboard|keyboardhidden|orientation|screenlayout|uimode|screensize|smallestscreensize"/>
also,
you have set project build target android 3.2
or higher .
note:
don't forget these 2 permissions in manifest
<uses-permission android:name="android.permission.internet"/> <uses-permission android:name="android.permission.access_network_state"/>
refer this tutorial
read documentation
Comments
Post a Comment