In a subclass of WebView, I have this in an overridden method of getTitle():
@Override
public String getTitle() {
Activity a = getVoTts().getActivity();
a.runOnUiThread(new Runnable() {
public void run() {
String tit = VoWebView.super.getTitle();
}
});
String title = tit; // this is what I WANT to do, it won't compile of course
...
...
}
But the String tit
is closed in an anonymous Runnable class and thus of course cannot be accessed down the method.
Is there any technique or "trick" that would allow me to pass a value obtained in an anonymous Runnable class to statements down the lines (in the same method) or assign it to a data member?