在android中,我必须实现以下目标:
如果输入的密码是正确的funToEnterPassword();
。我怎么能知道我从哪个方法调用了这个方法,所以我可以继续使用functionABC();
或functionXYZ();
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();
}