问题
I'm loading .swf files into a WebView directly using webView.loadUrl("http://whatever.com/file.swf");. It works perfectly in the vast majority of cases.
When loading a few specific swf files on certain devices, though, shortly after the Flash media begins to be displayed, my app closes with a Signal 11 fault caused by the Flash Player plugin. Example LogCat dump here. No Exception is thrown. The same thing happens if I load those files into the xScope browser.
When loading them into Dolphin Browser or the default Android Browser, however, shortly after the media begins to be displayed, the following is printed to LogCat:
05-31 18:13:15.498: DEBUG/FONT(9183): WARNING: **************************** Detect FLEngine error 1 ****************************
05-31 18:13:15.558: DEBUG/(9183): ---------------------------------------------------------------> call AudioTrack stop()
and an error icon is displayed on-screen:
No SIGSEGV fault occurs, and the browser is not terminated.
Does anyone know how I could do the exact same thing? Prevent the Flash Player plugin from causing the SIGSEGV fault, and simply handle the error myself, without the app being terminated? Any help would be greatly appreciated.
回答1:
I see in your logcat output that the crash occurs in libflashlite.so. You should be using real Flash 10.3 or higher, not Flash Lite. The Flash player is available on the Android Market now.
来源:https://stackoverflow.com/questions/6185407/prevent-flash-player-fault-in-webview-as-is-done-by-the-android-browser