Sunit Kumar Gupta
Sunit Kumar Gupta

Reputation: 1213

Admob integration for android

How to read real add on android device. The sample add are appear on the emulator but when i try it on real device it does not work. please help me, what i am doing wrong, reply.

thanks in advance

Upvotes: 2

Views: 965

Answers (1)

Ankitkumar Makwana
Ankitkumar Makwana

Reputation: 3485

check in your xml

replace /res/ with /lib/ in your custom layout nampespace xmlns:android="http://schemas.android.com/apk/res/android" will be

xmlns:yourApp="http://schemas.android.com/apk/lib/com.yourAppPackege.yourClass"

also in Manifest.xml

<activity android:name="com.google.ads.AdActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:configChanges="orientation|keyboard|keyboardHidden" />

Upvotes: 1

Related Questions