I need a modal dialog (something like the calculator). But I've got some heavy problems.
1) I can open a dialog with my own xml:
well, it looks nice, just like a modal dialog. but I need to put the button listeners inside the calling activity, and thats ugly !
2) I can use AlertDialog.Builder without xml
3) I can use a SubActivity, this way my code stays within the activity, but it doesn't look like a modal dialog rather than a normal activity:
so is there another way for me? maybe I could extend Dialog? or any other suggestions?