how to create a central gate keeper object that also can initiate calls
<p>I am kind of new to android and don't have any idea how to structure this one.</p>

<p>I have couple of screens (activities) from which a phone call can be initiated. However I want to create a central gate keeper object that is called by any of those screens to do some stuff before and after the call is initiated.</p>

<p>I know how to do this within one screen class, by implementing the code in the screen class itself. However, I don't know how to get started creating this central gate keeper class and calling it from the screen.</p>

<p>I tried to create another activity gate keeper, but this opens a new screen - I want to stay in the initial screen and be able to also initiate an AlertDialog ir required - this always should be placed over the current screen.</p>

<p>But when I just create a class that is not an activity I can't initiate calls.</p>

<p>Or is there really no other way but to put the gate keeper's code in the screen class and then subclass all other screens? This I dislike the most...</p>

<p>I just need to know the logic, the details I know how to do...</p>

<p>Many thanks</p>
