Skip to main content
January 4, 2012
Answered

Ice Cream sandwich + Stage Text = no go?

  • January 4, 2012
  • 17 replies
  • 2672 views

My boss just got the new Google Nexus giant screen phone, I believe the first phone to run the ice cream sandwich OS.

Anyhow he tried an app we put out recently and it ran fine on all the phones and tablets we tested it on but on ICS once the submit button is hit and stage text is due to appear the whole screen goes white, swipe gestures still work and the other frames work fine that do not have stage text, its the only thing I can think of.

I will try to rebuild the app using no stage text but its a huge annoyance. If anyone wants to check out the app you can get it at the below link.

https://market.android.com/details?id=air.com.toyotaforklift.calculatorphone

or

https://market.android.com/details?id=air.com.toyotaforklift.calculatortablet

Not sure if the new crazy high res screen phone is considered a Large or XLarge screen by android.

I believe the app was built with AIR 3.0, dont think I have this pc on 3.1 yet, might be worth a shot.

This topic has been closed for replies.
Correct answer Colin Holgate

Thats probably a great idea, any chance you have that piece of code on the tip of your tongue?

I appreciate all your help Colin, not just ont his topic but in general on this forum, I have used your posts so much.


Something on these lines:

import flash.desktop.NativeApplication;

import flash.system.Capabilities;

import flash.events.*;

import flash.display.StageOrientation;

private var startOrientation:String = stage.orientation;

if (Capabilities.cpuArchitecture == "ARM") {

NativeApplication.nativeApplication.addEventListener(Event.ACTIVATE, handleActivate, false, 0, true);

NativeApplication.nativeApplication.addEventListener(Event.DEACTIVATE, handleDeactivate, false, 0, true);

}

private function handleActivate(event:Event):void {

stage.setOrientation(startOrientation);

}

private function handleDeactivate(event:Event):void {

}

The idea is to set the orientation to what it was when the app started, and trust that Flash managed to start it in the right orientation. You could wait for a resize event before setting that value, if you run into trouble.

The reason you can't use:

stage.setOrientation(StageOrientation.ROTATED_RIGHT);

is because that orientation is landscape on Android phones and some tablets, but portrait on other tablets.

17 replies

Colin Holgate
Inspiring
January 5, 2012

That would be the ice cream.

>once the submit button is hit and stage text is due to appear the whole screen goes white

January 5, 2012

Well thats great, do you have an ICS phone Colin?

Time to convert to regular old dynamic text boxes.

Colin Holgate
Inspiring
January 5, 2012

No, but I like ice cream.

I have a 1280x800 Android 3.2.1 tablet, so the app should be able to work on the 1280x720 sized screen. Mind you, did you download the tablet or phone version? I didn't think to try the phone one.

I just tried that, and I get the white screen on the results page. Which means it's not an ICS or Galaxy Nexus issue, it's to do with using the phone version on a larger screen I guess.

There are other things to note. With Android 3.2 you can tell an app to stretch to fill the screen or zoom to fill the screen, and if I use zoom it ends up showing just the upper left quarter. What stage size did you use?

The moving of the panel off the screen is a lot smoother than the moving it back on, even though less fields are showing. That seems odd too.

One last thing, I have seen some issues that showed only when using Full Screen, which you seem to be doing. How are things if you don't use full screen?