I am loading Flash SWF in Android WebView.
I want SWF to instantly become full-screen and focused.
The name of the class that the flash handles is com.adobe.flashplayer.FlashPaintSurface . Watching the log, when I press the full-screen flash mode manually, it calls com.adobe.flashplayer.FlashPaintSurface.toggleFullScreen() .
The first part of my question: how can I call this method manually for my Flash SWF?
Please note that with web browsing with built-in flash memory, the only way I seem to be able to completely shield it (so that in the pop-up Flash window the surfaceview instead of the flash appears on top of the webview view ) by touching the screen with two fingers while the interface will not appear at the top of the screen and will not happen reliably.
To focus inside my webview class, I call:
@Override protected boolean drawChild (Canvas canvas, View child, long drawingTime) { if (child.getClass().getName().equals("com.adobe.flashplayer.FlashPaintSurface")) { child.requestFocus(); } return super.drawChild(canvas, child, drawingTime); }
This does not set the focus as I thought. Although I assume that if full-screen mode is correct, FlashPaintSurface should give focus. But if the first part is not feasible, I would be interested, at least, not to focus on SWF by clicking on it at startup.
Note that I am doing this dynamically without invoking my own SWF files, which I am doing myself, so I cannot solve this using ActionScript.
android flash webview fullscreen
corey
source share