For the most of your popup needs, Android's Dialog should be good enough. To popup some message, use AlertDialog. Always use AlertDialog.Builder to build a new AlertDialog. If you need a custom set of controls in the main message, use AndroidDialog.Builder's setView() method to set appropriate layout.
Now, if we need to popup a special kind of Activity that a Dialog cannnot solve, we can still do that. But using Activity as a popup has a few problems. In this post, I would like to discuss some of the approaches that I had taken to solve the problems.
Now, if we need to popup a special kind of Activity that a Dialog cannnot solve, we can still do that. But using Activity as a popup has a few problems. In this post, I would like to discuss some of the approaches that I had taken to solve the problems.