Iv been trying to make a pause menu for an android game iv been working on, it has 2 buttons, resume and exit, the exit button works fine but if you press resume the game continues to run but the dialog wont close, the dialog code is as folows
Builder builder = new AlertDialog.Builder(this);
builder.setMessage("Game Paused !!")
.setCancelable(false)
.setPositiveButton("Exit", new DialogInterface.OnClickListener()
{
public void onClick(DialogInterface dialog, int id)
{
CUBEGameActivity.this.finish();
}
})
.setNegativeButton("Resume", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id)
{
dialog.cancel();
CUBEGameActivity.this.onResume();
}
});
AlertDialog dialog = builder.create();
dialog.show();
Does anyone have any ideas how i could get this to work

