I'd like to know if it's possible (and how if it is) to refer to enclosing anonymous class instance in Java.
Example code:
final Handler handler = new Handler();
handler.post(new Runnable() {
@Override
public void run() {
new Task() {
@Override
public void onTaskFinish() {
handler.post(?); // what should go here?
}
}.execute()
}
});