I am pretty new to this. I made 2 Activities. From Activity A I want to be able to open Activity B as a dialog window instead of it taking over the screen. I figured out how to make a dialog, but it seems its functionality needs to be programmed into the same Activity Java file. I want to keep my code separate.
Is there a way to show a dialog window that contains another activity along with all of it's coded functionality?