AlertDialog のビルダー クラスの .create() メソッドと .show() メソッドに違いはありますか? 以下を使用して警告ダイアログを作成するときのように:
AlertDialog.Builder builder = new
AlertDialog.Builder builder = new AlertDialog.Builder(context);
builder.setMessage("");
builder.setPositiveButton(....)
builder.setNegativeButton(....)
推奨される使用方法とその理由は何ですか?
builder.create() //I have seen this creates and displays the dialog
また
builder.show() //this also displays the dialog
また
builder.create().show() //well same thing
ドキュメントを読みました。しかし、そこから意味をなすことはできませんでした。何か案は ?