Función ShowDialog

Plain Text icon funcionShow.txt — Plain Text, 836 bytes

Continguts del fitxer

	public void showShipNotFinishedDialog()
	{
		
		AlertDialog.Builder builder = new AlertDialog.Builder(game_commons.gBActivity);
		
		builder.setMessage(":: NOT FINISHED!!! ::").setCancelable(false).setTitle(":: NOT FINISHED ! ::")
		
		.setPositiveButton("Use DEFAULT built-up! & Quit", 
				new DialogInterface.OnClickListener() {
						public void onClick(DialogInterface dialog,int id)
						{
							//game_reset.create_default_buildup();
							//game_commons.gBActivity.call_menu_Activity();
						}
		})
		
		.setNegativeButton("Ooops!!! Continue....!", 
				new DialogInterface.OnClickListener() {
			public void onClick(DialogInterface dialog,int id){
				dialog.cancel();
			}
		});
		
		AlertDialog alert = builder.create();
		alert.setIcon(android.R.drawable.ic_dialog_alert);
		alert.show();

	}
Navegació