Hej
Jeg har et helt simpelt android program som virker uden problemer, indtil jeg indsætter AdMob. Jeg har brugt AdMob's egen vejledning men uden held. manifesten indeholder :
<activity
android:name="com.google.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
XML kode:
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
- android:layout_width="fill_parent" android:layout_height="fill_parent"
- android:orientation="vertical">
-
- <ImageView
- android:background="@drawable/baggrund"
- android:scaleType="fitXY"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:contentDescription="@string/baggrund"
- android:id="@+id/baggrund">
- </ImageView>
-
- <LinearLayout
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:id="@+id/linearLayout"
- android:layout_marginTop="25dp">
-
-
- <Button
- android:text="@string/normal"
- android:id="@+id/startnormal"
- android:background="@drawable/menu_knap"
- style="@style/knaptekst"
- android:layout_height="wrap_content">
- </Button>
-
- <Button
- android:text="@string/mellemtid"
- android:id="@+id/startmellemtid"
- android:background="@drawable/menu_knap"
- style="@style/knaptekst"
- android:layout_height="wrap_content">
- </Button>
-
-
- </LinearLayout>
-
-
-
- <com.google.ads.AdView android:id="@+id/adView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- ads:adUnitId="a15169c3fd053f9"
- ads:adSize="BANNER"
- ads:testDevices="0009c49370197f"
- ads:loadAdOnCreate="true"/>
-
- </RelativeLayout>
Jeg får tilbagemelding: ERROR INFLATING CLASS COM.GOOGLE.ADS.ADVIEW
Kan nogle hjælpe?