How to keep a dialog/activity on the top of other activities, no matter if user switch between activities,it should be alive all the time.

You can use Relative layout as a parent, by using Relative Layout, you can overlap the other layout. So, you have to use to two child layout of relative layout. In the one child you will have popup, and in another layout you have to keep changing your layout..
If you want this across multiple activities. You must create a separate layout and include that in all activities, and create an interface to handle the button events in the popup.
or
You can create a base activity, having above mentioned layout, and extends that activity in all other activities where you want this layout.
Regards, Yuvi
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With