Probleme mit MobFox

  • 0 Antworten
  • Letztes Antwortdatum
B

babsitz

Neues Mitglied
0
Hallo zusammen,

ich habe mir das MobFox-SDK heruntergeladen und unter libs korrekt eingebunden.

Gemäß Anleitung habe ich die Manifest angepasst. Diese sieht nun wie folgt aus:

Code:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="de.klebsattel.android.mobfoxtest"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk
        android:minSdkVersion="4"
        android:targetSdkVersion="15" />
    <uses-permission android:name="android.permission.INTERNET"/>

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme" >
        <activity
            android:name=".MobFoxTest"
            android:label="@string/title_activity_mob_fox_test" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name="com.mobfox.sdk.InAppWebView"/>
    </application>

</manifest>

Die Layout Datei sieht so aus:

Code:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_centerVertical="true"
        android:padding="@dimen/padding_medium"
        android:text="@string/hello_world"
        tools:context=".MobFoxTest" />
    
   	<com.mobfox.sdk.MobFoxView
		android:id="@+id/mobFoxView"
		android:layout_width="fill_parent"
		android:layout_height="50dp"
		publisherId="ae6cc9b5e8dfa1ab4c0248f62c6dde12" />
	</RelativeLayout>


Allerdings erscheint folgende Fehlermeldung:
Code:
com.mobfox.sdk.MobFoxView failed to instantiate.

java.lang.NullPointerException
	at com.mobfox.sdk.MobFoxView.<init>(MobFoxView.java:189)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

Beim Installieren und Starten der App stürzt diese ab.

Könnt ihr mir vielleicht sagen, was ich falsch gemacht habe?

Danke und Grüße
Jörg
 
Zurück
Oben Unten