How can I make my full screen of mobile on Kindle Fire HD 7 apps every time it works?

I tried Capabilities.screenResolutionX and stage.fullScreenWidth, but after sleeping, the Kindle Fire will not launch my full screen app. He abandons the right slide menu black space and the edges of my game show app instead of being off the screen as designed (not obvious with this specific application).

I am including a screenshot of the problem. The problem seems to occur after the Kindle went to sleep and the unlock screen is displayed.Screenshot_2015-08-27-13-41-30.png

After bricking my Kindle Fire HD 7, I made this change to the code. Not to publish, and leave with the previous solution.

QUESTION:

Kindle Fire HD devices will report stage.deviceOrientation == 'unknown '.

While there are no deviceOrientation, stage.fullscreenWidth does not report the correct values. On my Kindle Fire HD 7 results 1202 instead of 1280. This affects the appearance of full-screen applications as a black empty space remains on the right side of the application for the sidebar of Kindle.

RESOLUTION:

Do not read stage.fullscreenWidth until stage.deviceOrientation is defined, or the bar of Kindle has hidden.

import flash.events.Event;

import flash.utils.Timer;

import flash.utils.TimerEvents;

private var screenWidth:int;

private var screenHeight:int;

private var idleUser:Timer;

public void ClassName()

{

this.addEventListener (Event.RESIZE, setStage);

}

private void setStage(e:Event):void

{

this.removeEventListener (Event.RESIZE, setStage);

userIdle = new timer (500, 8);

userIdle.addEventListener (TimerEvent.TIMER, setFullscreen);

userIdle addEventListener (TimerEvent.TIMER_COMPLETE, lastCall);

}

private void setFullscreen(e:TimerEvent):void

{

If (stage.deviceOrientation == "unknown") return;

userIdle.stop ();

lastCall (null);

}

private void lastCall(e:TimerEvent):void

{

screenWidth = stage.fullscreenWidth;

screenHeight = stage.fullscreenHeight;

startGame();

}

private function startGame (): void

{

userIdle.removeEventListener (TimerEvent.TIMER, setFullscreen);

userIdle.removeEventListener (TimerEvent.TIMER_COMPLETE, startGame);

userIdle = null;

Game init code...

}

Tags: Adobe Animate

Similar Questions

  • How can I remove the Bing screen? I uninstalled Bing, but it appears again every time as I start Mozilla Firefox.

    How can I remove the Bing screen? I uninstalled Bing, but it appears again every time as I start Mozilla Firefox.

    original title: Bing appears when I start firefox

    Hi RowingRVer,

    ·         The issue is only with Firefox?

    ·         What are the States of pop-up message?

    You can try to use Internet Explorer and check to see if the problem still persists.

    If the issue is only with Firefox so you can contact Firefox Support for assistance.

     

    Firefox Support Forum

    http://support.Mozilla.org/en-us/questions

    Let us know the results.

  • small Web site home pages. How can I make them full screen

    After the last update, when I put them to the top of firefox home page is about 3 x 5 inches. I can barely read the police. How to do what I used to have in the trail full screen

    Reset the page zoom on pages that cause problems: view > Zoom > reset (Ctrl + 0 (zero); Cmd + 0 on Mac)

  • How can I make my full screen wallpaper? It appears like that but now you just see the image at the Center with black borders around. WIndows 7

    I have WIndows 7. My office used to demonstrate the sreen integralexecuterdes but now some re cropped images offshore or too small for the screen showing the black border around the image.

    Are the part of the black edges of the Office that is can you put the mouse cursor or the icons in the black box, or the dark area "wasted space".

    If the black box is "wasted space" around your office, then it is possible that you will need to adjust your monitor settings, etc., to fill the new image size screen.

    If you can move things in black areas i.e. office is full screen but the image is not, then it may be the type of wallpaper in personalization, "position of the image.

    Right-click on your desktop.

    Click Customize

    down, click on "desktop background".

    down is a drop down selection list called "position of the image.

    It has options such as - Fill, Fit, Stretch, Tile and Center

    Try each one in turn and see if it helps.

    If it is then

    If this isn't the case, you have loaded new updates as new graphics drivers lately?

  • How can I make the full screen of the first rectangle in a vertical Parallax scrolling site?

    My site is www.train-nourish-talk.com.au

    As you can see I want to get the first rectangle (the one with the white background and the TNT logo) the size of the whole screen if you do not the following rectangle (subject of article) until you press the button about.

    I tried several ways to do this with no luck.

    Hi Katherine,

    There is no surefire way to achieve because it can vary according to the size/resolution of the screen. You can try to make a rectangle large enough, big enough to cover the commonly used screen size/resolution.

    Kind regards

    Aish

  • I'm doing iPhoto my screen saver and I am not given the choice, when I click on "Source".  iPhoto is grayed out.  How can I make iPhoto my screen saver?

    I'm doing iPhoto my screen saver and I am not given the choice, when I click on "Source".  iPhoto is grayed out.  How can I make iPhoto my screen saver?  I'll just put up my new iMac.

    As a guess I think you need to import your iPhoto library in Photos and chose the photo library.

  • How can I get a full screen when playing scrabble

    I CAN'T GET A FULL SCREEN WHEN I'M PLAYING ONLINE SCRABBLE, IVE ALTERS SCREEN RESOLUTIIN TRIED SEVERAL TIMES

    Hello

    -What operating system is installed on your computer?
    -What web browser do you use to play scrabble online?
    -Did you contact the Web site administrator?
    -Have you been able to play the game in full screen earlier?

    The game can be designed to play on the small screen. I suggest you to contact the site administrator to check if this is the case.

    If you were able to play in full screen mode earlier, update your graphics card driver and check if that helps.

    http://support.Microsoft.com/kb/283658

  • How can I get a full screen when connecting to the internet, my screen display 1/4 when it is connected to the internet. I then optimize it

    How do I get a full screen when I connect to the internet, my screen appears1/4 screen when I connected mthen should maximize it?

    Three options.

    1: take the corners of the window and drag it to the format full screen. Do not use to expand. Close all other windows first via the taskbar and the latter. Windows will remember the size of the last closed window the next time that you open the program.

    2: any shortcut you use to launch the window, right-click, and select Properties. Under the 'Run' drop-down list, choose "expanded".

    3: IE New Window Maximizer
    http://www.MajorGeeks.com/IE_New_Window_Maximizer_d1746.html

  • How can I change my email address from Windows Live Mail to Yahoo mail? Every time I try and send something in Windows Mail it tells me it's the wrong server.

    How can I configure my windows Yahoo email? whenever I try to send something by windows, it tell me bad server host and I don't know how to change...

    Thanks for any help you can give

    Mary

    original title: help! Help! Help

    • Using Yahoo Webmail?
    • If you are by clicking on an image or some such and trying to send to. Recipient of the message?
    • He won't use Vista Windows Mail?

    Send to | The message recipient wants to use the default email client and Yahoo Webmail is not an e-mail client. You may be able to work around the problem with this,

    How can I make Yahoo! Mail my default email application?
    http://help.Yahoo.com/l/us/Yahoo/mail/YAHOOMAIL/settings/settings-10.html

  • How can I return mode full screen?

    I am running windows 7 in virtual machine and when I go into the mode full-screen, I can not select or click what anyone on the bar at the top - the mouse going on underneath...  I use Fusion 3.01.

    Hello.  Try this:

    control-command + s

    Hope that helps.

  • How can I save my password and sign, they have no need tobe typed in every time?

    I just want to know what to go into windows XP in order to not have to type my sign and the password every time? I got it before that I had a tech.come to my home to fix the speed on my computer. Thanks, deb

    Hello

    This should help you.

    "How to turn on automatic logon in Windows XP"

    http://support.Microsoft.com/kb/315231?WA=wsignin1.0

    Method 2

    You can also turn on automatic logon without editing the registry in Windows XP Home Edition and Windows XP Professional on a computer that is not joined to a domain. To do this, follow these steps:

    1. Click Startand then click run.
    2. In the Open box, type control userpasswords2, and then click OK.

      Note When users try to view help in the window information user accounts on Windows XP Home Edition, the help information is not displayed. Additionally, users receive the following error message:

      Cannot find the: \Windows\System32\users.hlp Help file. Check that the file exists on your hard drive. If it does not exist, you must reinstall it.
    3. Clear the "users must enter a user name and password to use this computer" option, and then click apply.
    4. In the automatically on log window, type the password in the password box, and then retype the password in the Confirm password box.
    5. Click OK to close the window automatically on Journal , and then click OK to close the user accounts window.

    See you soon.

  • How can I make my smaller screen size?

    I have a Compaq Presario CQ57 with Windows 7 and when I shoot things on the internet, about 75% of the page fits on my monitor because the graphics look so great.  When I go on Google, for example, the word that Google takes over most of the middle part of my screen and the box you type what you would Google contains more than what shows the lower part of my monitor.  I will try to find how to do all this small so everything fits on my screen.  I tried going to start, Control Panel, appearance and the resolution and then display and tried different things from here without success, but maybe I missed something or there is another way.  Please if anyone can help.

    Thank you

    Scott

    Hi Scott,.

    When in a browser, you can use the following commands.

    Hold down the CTRL key and press - to reduce the size of the page.

    Hold down the CTRL key and press + to increase the size of the page.

    Press and hold Ctrl and press 0 (zero) to return to the default size.

    Kind regards

    DP - K

  • How can I make a full copy of the C drive to a smaller SSD for one SSD more?

    My C drive is currently a 149 GB SSD.  I want to replace it with a new, unformatted 256 GB SSD.

    I would like to know 1) if there are specific things to be aware before you format the new drive.
    (2) how to copy all of my current C: drive on the new SSD, and
    (3) how to assign my new, bigger than my C: drive so that I can then format my old smaller SSD as a clean player.
    Rob

    I put the new drive as SATA port 0 (or 1, depending on where your begins).

    You can use Clonezilla to clone:
    Should work just fine. It will automatically affect the C: drive. Just make sure that it is configured to start first in the BIOS (won't matter on the drive letter, but you don't want a start - they look identical other than the disk space).
  • How can I make my second screen a monitor? New versions wiped my preferences and do help with no help.

    I am trying to use my second screen as a monitor size for editing. All my old layouts have been lost in systems and subsequent updates. It was a simple task made now lost in the options. How to do this task once simple?

    @

    Edit/Preferences... this tab:

    Neil

  • How can I play videos full screen to intex nails fx... cell os firefox?

    Model: intex cloud fx

    ritzz says

    Model: intex cloud fx

    In settings, go to the view tab and uncheck the lock orientation . After that just go to the video you want to play and tilt the mobile in the desired direction.

    I hope this will solve your problem.

Maybe you are looking for