Code example for AlertDialog.Builder

Methods: setView

0
				LinearLayout.LayoutParams.WRAP_CONTENT));
		layout.setMinimumWidth(400);
		layout.setPadding(20, 20, 20, 20);
		layout.setOrientation(1); // 1 is vertical
 
		builder.setView(layout);
	} 
 
	@Override 
	protected void onDialogClosed(boolean positiveResult) {
 
		if (positiveResult) {
			resetDB(); 
			Toast.makeText(context, "���Ʈw�w�g���]�I", Toast.LENGTH_SHORT).show();
			Intent i = context.getPackageManager().getLaunchIntentForPackage(
					context.getPackageName());
			i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP
					| Intent.FLAG_ACTIVITY_NEW_TASK);
			context.startActivity(i);
		} else {