Adobe-Runtime-Support
Adobe-Runtime-Support copied to clipboard
Stagewebview and backKeyPressed events are not available on Android. What's the solution?
Before reporting this issue:
- you should consider whether this would be a question better suited to discussions above ^^ ;
- make sure you have searched for similar issues and add your experience there if one exists.
Problem Description
2 bugs
- BackKeyPressed="view1_back(event)" not executed on Android
- With Stagewebview, only white screen is displayed
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" creationComplete="view1_creationCompleteHandler(event)" backKeyPressed="view1_back(event)"
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
import flash.media.StageWebView;
import flash.geom.Rectangle;
public var webView:StageWebView;
private function view1_back(event:FlexEvent):void {
trace('1 bug');
}
private function view1_creationCompleteHandler(event:FlexEvent):void {
trace("StageWebView.isSupported:", StageWebView.isSupported);
webView = new StageWebView(true);
webView.stage = this.stage;
webView.viewPort = new Rectangle(0, 0, systemManager.screen.width, systemManager.screen.height );
webView.loadURL("http://www.google.com");
}
]]>
</fx:Script>
</s:View>
Describe your problem in detail. Include the following information:
- Which AIR SDK did you use? 889
- Describe the affected environment: Android vs. iOS, all devices vs. just specific models. android
- Can you reproduce it yourself, or did you get reports from other users? If so, how many users are affected (percentage)?
Steps to Reproduce
Tell us how this issue can be reproduced. Seriously: if you want this issue to be fixed, this is the part you really need to get nailed.
Give us a minimal example:
- As little code as possible. Get to the root of the problem!
- As few dependencies as possible. Did the problem pop up with Feathers? Try to reproduce it with Starling only.
- Remove any ANEs (except if they are vital for the problem).
- Include all necessary files (e.g. textures).
Known Workarounds
Just in case others run into this – do you happen to know of a workaround? Otherwise, just remove this section altogether.