In class Foo, I'm performing an HTTP post, returning to a callback:
class Foo {
private static void send() {
HttpPostRequest task = new HttpPostRequest(data, new HttpPostRequest.CustomCallback() {
@Override
public void completionHandler(Boolean success, String result) {
// this doesn't work
// this.anotherMethod();
}
});
task.execute("https://foo.org");
}
private static void anotherMethod() {
// i need to do things here...
}
}
This callback works, however I need to call another method in the outer class scope. I can't figure out how to do this: How do I properly reference this outer scope?