Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
Adobe Flex SDK Previous
-
None
-
Affected OS(s): Google Android
Language Found: English
Description
New Steps to reproduce:
{6/15/2011}1. Import the project ScreenAlteration_Sample.fxp to FB.
2. In FB, debug the app on Desktop with "Samsung Galaxy Tab".
3. Click on Portrait and then Landscape radiobuttons.
--> Notice that it switches to Portrait and then Landscape respectively.
4. In FB, debug the app on Desktop with "Motorola XOOM".
5. Click on Portrait and then Landscape radiobuttons.
Actual Results: it doesn't switch to Portrait and Landscape correctly.
============================
New Steps to reproduce:
1. Create a new Flex Mobile project with defaults.
2. In the main app, change the code to the following:
<?xml version="1.0" encoding="utf-8"?>
<s:ViewNavigatorApplication
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
firstView="views.HomeView"
preinitialize="mPreinitializeHandler(event)">
<s:states>
<s:State name="portrait"/>
<s:State name="landscape"/>
</s:states>
<fx:Script>
<![CDATA[
import mx.events.FlexEvent;
private function mPreinitializeHandler(event:FlexEvent):void
{ trace("mPreinitializeHandler this.currentState = "+this.currentState); } ]]
>
</fx:Script>
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
</s:ViewNavigatorApplication>
3. In FB, click on the Debug button on toolbar.
4. Select Google Android as target platform, click "On desktop" radiobutton and select "Motorola XOOM", click Debug button.
Actual Results:
"mPreinitializeHandler this.currentState = portrait" shows on console.
If replace the states tags to the following, "mPreinitializeHandler this.currentState = landscape" shows on console:
<s:states>
<s:State name="landscape"/>
<s:State name="portrait"/>
</s:states>
============================
Original Steps to reproduce:
<s:ViewNavigatorApplication
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
preinitialize="mPreinitializeHandler(event)"
protected function mPreinitializeHandler(event:FlexEvent):void{
trace("mPreinitializeHandler this.currentState = "+this.currentState);
}
Actual Results:
Xoom defauls to opening in Landscape mode view, while all other devices seem to open in Portrait mode.
mPreinitializeHandler this.currentState = portrait
Expected Results:
mPreinitializeHandler this.currentState = landscape
Workaround (if any):
Go to Flex preferences Device Configurations,
duplicate Motorola XOOM setting,
rename to Motorola XOOM2,
changes Full Screen settings from 1280x800 to 800x1024.