トップページ > コンテンツ > その他のAPI、ライブラリ関係 > Android入門 > ポップアップ等の表示 > Alertの表示方法

AlertDialog.Builder alert = new AlertDialog.Builder(this);
alert.setTitle("タイトル");
alert.setMessage("メッセージ");
alert.setPositiveButton("YES",
    new DialogInterface.OnClickListener() {
                   public void onClick(DialogInterface dialog, int which) {
    }
});
alert.show();
最終更新:2012年11月10日 22:40