I have a structure similar to this:
class OuterClass{
AnimatorListener sth;
public OuterClass(){
sth = new InnerClass();
}
public class InnerClass implements AnimatorListener{
public InnerClass(){}
public void doSomething(){}
//assuming animator listener methods implemented
}
public void tryingToDoSomething(){
sth.doSomething(); //I cannot use this, simply it is not seen by eclipse.
}
}
Why cant I call doSomething() method of sth object while I am tryingToDoSomething() ?
Your object
sthbelongs to classAnimatorListenerbut it should belong toInnerClass. Hope this helps, happy coding.