Game Development Reference
In-Depth Information
<meta-data android :name= "com.google.android.gms.version"
android :value= "@integer/google_play_services_version" />
It also requires that a “AdActivity” be declared in your app's AndroidManifest.xml:
< activity android:name = "com.google.android.gms.ads.AdActivity"
android:configChanges = "keyboard|keyboardHidden|orientation" />
Moreover, making ad requests requires internet and network access permissions:
< uses-permission android:name = "android.permission.INTERNET" />
< uses-permission android:name = "android.permission.ACCESS_NETWORK_STATE" />
Finally, your Manifest should look like this:
<? xml version = "1.0" encoding = "utf-8" ?>
< manifest xmlns:android = "http://schemas.android.com/apk/res/android"
package = "micbots.raccoonrob"
android:versionCode = "1"
android:versionName = "1.0" >
< supports-screens
android:smallScreens = "false"
android:normalScreens = "true"
android:largeScreens = "true"
android:anyDensity = "true" />
< application
android:allowBackup = "true"
android:icon = "@drawable/ic_launcher"
android:label = "@string/app_name" >
< meta-data android :name= "com.google.android.gms.version"
android :value= "@integer/google_play_services_version" />
< activity
android:label = "@string/app_name"
android:name = ".RaccoonRob"
android:screenOrientation = "portrait"
android:configChanges = "keyboard|keyboardHidden|orientation" >
< intent-filter >
< action android:name = "android.intent.action.MAIN" />
< category android:name = "android.intent.category.LAUNCHER" />
</ intent-filter >
</ activity >
Search WWH ::




Custom Search