Remember the previous method from which next method get called
<p>In android I've to achieve following:</p>

<p>If entered password is correct in <code>funToEnterPassword();</code>. How could I know here from which method I called this method so I can continue with <code>functionABC();</code> or <code>functionXYZ();</code></p>

<pre><code>public void fun1(){
 funToEnterPassword();
 funcABC();
}


public void fun1(){
 funToEnterPassword();
 functionXYZ();
}


public void funToEnterPassword(){
 //Enter password in popup
 //If password is correct how could I know here from which method I got called this method so I can continue with functionABC() or functionXYZ();
} 
</code></pre>
