STEP 3: ANDROID MANIFEST
Open your AndroidManifest.xml file and locate tag.
<application
android:debuggable="false"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name">
Remove android:debuggable="false" and replace it with android:allowBackup="true".
Add a <meta-data> tag between <application> and first <activity> tags:
<meta-data android:name="com.google.android.gms.version"
android:value="5089000" />
The android:value integer can be found on version.xml file, located on your drive\<android-sdk folder>\extras\google\google_play_services\libproject\google-play-services_lib\res\values folder.
Replace the old ads activity com.google.ads.AdActivity with com.google.android.gms.ads.AdActivity.
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation| screenLayout|uiMode|screenSize|smallestScreenSize"/>
NOTE: Google Play Services 5+ requires SDK version 9 minimum, or you will get an error uploading your apk to the market.
Check the tag <uses-sdk android:minSdkVersion="9"/> at the beginning of your AndroidManifest.xml file.
Check also the file project.properties in your project root, the target should be at least target=android-14.
Save AndroidManifest.xml file.
STEP 4: JAVA SOURCE
|