Can someone help me or point me to some resource where there is an example to show a dialog box over the MapActivity. I can show it in a usual activity but I am having some difficulty with the same thing inside a Map.
My code is something like
AlertDialog.Builder builder = new AlertDialog.Builder(getBaseContext());
switch (id) {
case GAME_OVER:
builder.setMessage(R.string.gameovertext);
builder.setCancelable(false);
builder.setPositiveButton(
R.string.yes, new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
finish();
}
});
builder.setNegativeButton(R.string.no,
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
}
});
return builder.create();
}
return null;