Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android AppFlood类型中的showFullScreen(Activity)方法不适用于参数(new Handler(){}}error)_Android_Eclipse - Fatal编程技术网

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

Android AppFlood类型中的showFullScreen(Activity)方法不适用于参数(new Handler(){}}error),android,eclipse,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 handleMe

我尝试实现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"

 />

用YourActivit替换此。thisNow应用程序已停止工作。但它解决了错误。