I have a Flash file played in an Android application and interacting with it.
The Android version of this application is 2.3 .
The Flash file is embedded in an Android’s WebView and interacting with the application through the: shouldInterceptRequest method of the: WebViewClient:
WebView web_Player;
web_Player.setWebViewClient(new WebViewClient() {
@Override
public WebResourceResponse shouldInterceptRequest(WebView view, String url) {
//CODE CODE CODE
}
}
The problem:
I need this code to support Android 2.2, which doesn’t know the shouldInterceptRequest method.
How can I overcome this issue? In what other way can the Flash file communicate with the application in Android 2.2?
I’ve ended up using:
Works perfectly.