AppFlood类型中的showFullScreen(Activity)方法不适用于参数(new Handler(){}}错误

时间:2014-08-25 19:22:14

标签: android eclipse

我尝试实施appflood广告并收到错误消息。我真的不知道为什么会收到这个错误:

The method showFullScreen(Activity) in the type AppFlood is not applicable for the arguments (new Handler(){} .

我的主要活动:

protected Handler handler = new Handler() {

        @Override
        public void handleMessage(Message msg) {
            switch (msg.what) {
            case SHOW_ADS: {

                // Display the AppFlood Ad
                AppFlood.showFullScreen(this);
                Gdx.app.log("Show Ads", "");

                break;
            }

            case LOAD_ADS: {

我也会在清单中得到错误。错误是元素类型" meta-dataandroid:name"必须遵循属性规范,">"或" />"。但我有它。

这是我的清单:

<activity
android:name="com.appflood.AFSplashScreenActivity"
android:configChanges="keyboardHidden|orientation"
android:theme="@android:style/Theme.Translucent" >
</activity>
<activity
android:name="com.appflood.mraid.MraidBrowserActivity"
android:configChanges="keyboardHidden"
android:launchMode="singleTask"
android:theme="@android:style/Theme.Translucent" >
</activity>
<activity
android:name="com.appflood.AFFullScreenActivity"
android:configChanges="keyboardHidden|orientation"
android:theme="@android:style/Theme.Translucent"
android:launchMode="singleTask">
</activity>
<receiver
android:name="com.appflood.AFReferralReceiver"
android:exported="true" >
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
<meta-data
    android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"

 />

0 个答案:

没有答案