0

New Game は xml のボタンで、クリックすると newGame が実行されます。

<Button
        android:id="@+id/button1"
        android:layout_width="130dp"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:layout_alignParentLeft="true"
        android:layout_marginBottom="1dp"
        android:layout_marginLeft="1dp"
        android:onClick="newGame"
        android:text="@string/newgame" />


  public void newGame(View view) {
        if (startAppAd != null){
               startAppAd.show();
               startAppAd = null;
            }
         Intent intent = new Intent(this,MainActivity.class);
        startActivity(intent);
        finish();
    }

質問は、上記の構成で広告が表示されるかどうかです。または、次のアクティビティを直接開始しますか?? そうでない場合は、ボタンをクリックして広告を表示し、その後新しいアクティビティを開始する方法を提案してください。前もって感謝します

(エミュレータで試してみましたが、表示されません。問題がインターネットのせいかどうかはわかりません)

4

1 に答える 1

1

印象はありますが、一時停止がないので見ることができません。

于 2013-08-27T07:30:51.267 に答える