Konfigurációs activity-be szeretnék reklámot berakni:
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:myapp="http://schemas.android.com/apk/res/com.tafaya.android.app"
>
<PreferenceCategory android:title="">
...
<com.admob.android.ads.AdView android:id="@+id/ad"
android:layout_width="fill_parent" android:layout_height="wrap_content"
myapp:backgroundColor="#000000" myapp:primaryTextColor="#FFFFFF"
myapp:secondaryTextColor="#CCCCCC" />
</PreferenceCategory>
</PreferenceScreen>
Erre ezt kapom:
java.lang.RuntimeException: Unable to start activity ComponentInfo{...}: java.lang.ClassCastException: com.admob.android.ads.AdView
Mi lehet a gond?