Mobile App - transform the screen - only vertical view

Hi,
here's my problem:
My mobile application is a game. I wish that the application does not tailor to the position of the phone and was always vertical. Now screen reacts to automatically change (horizontally and vertically) and my app does not look good in landscape view.
I would like to set that when I turn rotate the phone, view the application does not change.
It is possible?
Lilly

In your -app.xml file you can set <autoOrients> to false.

Similar Messages

  • Why can't I fit my AIR app to the screen of the device ??

    Hi all,
    I've made some apps on device but it's the first time that I can't make the app fit the screen and I really don't understand why.
    I've downloaded an exemple of the game Flappy bird and I would like to play with my device.
    Can you help me make the app fit the device screen please ?
    Here's my main.as
    package{
      import citrus.core.starling.StarlingCitrusEngine;
        import flash.display.Stage;
      import flash.events.*;
        import flash.display.StageAlign;
       import flash.display.StageScaleMode;
      [SWF(frameRate="60")]
      public class Main extends StarlingCitrusEngine {
      public function Main() {
            stage.align = StageAlign.TOP_LEFT;
      stage.scaleMode = StageScaleMode.EXACT_FIT;
      override public function initialize():void {
      setUpStarling();
      //starling is ready, we can load assets
      override public function handleStarlingReady():void
      state = new FlappyBirdGameState();
    Here's my FlappyBirdGameState.as :
    public function FlappyBirdGameState()
      super();
      override public function initialize():void
      super.initialize();
      ce = CitrusEngine.getInstance();
      // load assets, then draw screen
      loadAssets();
      // fly with the spacebar, alternatively
      kb = ce.input.keyboard;
      kb.addKeyAction("fly", Keyboard.SPACE);
      private function loadAssets():void {
      assets = new AssetManager();
      assets.verbose = true;
      assets.enqueue(Assets);
      assets.loadQueue(function(ratio:Number):void
      trace("Loading assets, progress:", ratio);
      if (ratio == 1.0)
      // add game elements
      drawScreen();
      private function drawScreen():void
      var bg:CitrusSprite = new CitrusSprite("bg", {x: 0, y: 0, width: 320, height: 480});
      bg.view = new Image(assets.getTexture("bg.png"));
      add(bg);
      box = new CitrusSprite("box", {x: 40, y: -200, width: 240, height: 200});
      box.view = new Image(assets.getTexture("box.png"));
      add(box);
      textField = new TextField(200, 200, "CLICK TO FLY", "Flappy", 20, Color.NAVY);
      textField.x = 60;
      textField.y = -200;
      addChild(textField);
      // box and textField have synced tweens
      eaze(box).to(0.4, { y: 150 } );
      eaze(textField).to(0.4, { y: 150 } );
      ce.stage.addEventListener(MouseEvent.MOUSE_DOWN, start);
      function start(e:MouseEvent):void
      eaze(box).to(0.2, { y: -200 } );
      eaze(textField).to(0.2, { y: -200 } );
      newGame();
      ce.stage.removeEventListener(MouseEvent.MOUSE_DOWN, start);
      public function newGame():void
      // get a random Y position for first pipe
      randomizePipeY();
      pipe1 = new CitrusSprite("pipe", {x: 380, y: pipeY, width: 60, height: 160});
      pipe1.view = new Image(assets.getTexture("pipe.png"));
      add(pipe1);
      pipeBoundsTop1 = new Rectangle(0, 0, 50, 355);
      pipeBoundsBottom1 = new Rectangle(0, 0, 50, 364);
      // get a random Y position for second pipe
      randomizePipeY();
      pipe2 = new CitrusSprite("pipe2", {x: 620, y: pipeY, width: 60, height: 860});
      pipe2.view = new Image(assets.getTexture("pipe.png"));
      add(pipe2);
      pipeBoundsTop2 = new Rectangle(0, 0, 50, 355);
      pipeBoundsBottom2 = new Rectangle(0, 0, 50, 364);
      // the character
      thing = new CitrusSprite("thing", {x: 100, y: 200, width: 40, height: 50});
      thingImage = new Image(assets.getTexture("thing.png"));
      thing.view = thingImage;
      add(thing);
      thingBounds = new Rectangle(0, 0, 35, 45);
      ce.stage.addEventListener(MouseEvent.MOUSE_DOWN, fly);
      // move box to top
      var container:Sprite = view.getArt(box).parent;
      container.swapChildren(view.getArt(box) as DisplayObject, view.getArt(pipe1) as DisplayObject);
      container.swapChildren(view.getArt(box) as DisplayObject, view.getArt(pipe2) as DisplayObject);
      container.swapChildren(view.getArt(box) as DisplayObject, view.getArt(thing) as DisplayObject);
      // score text field
      scoreText = new TextField(300, 50, "", "Flappy", 20, Color.NAVY);
      scoreText.hAlign = "right";
      scoreText.x = -10;
      scoreText.y = 0;
      addChild(scoreText);
      // a few more things
      clicked = true;
      score = 0;
      velocity = -7;
      // click to fly
      public function fly(e:MouseEvent):void
      velocity = -7;
      assets.playSound("whoosh");
      // get a new Y position for a pipe
      private function randomizePipeY():void
      pipeY = new Number(Math.floor(Math.random() * -330) + -40);
      override public function update(timeDelta:Number):void
      super.update(timeDelta);
      if (clicked)
      if (!gameOver)
      // move pipes
      pipe1.x -= 2;
      pipe2.x -= 2;
      // after pipes go off screen, move them
      if (pipe1.x <= -60)
      //randomize pipe Y
      randomizePipeY();
      pipe1.x = 380;
      pipe1.y = pipeY;
      if (pipe2.x <= -60)
      // randomize pipe Y
      randomizePipeY();
      pipe2.x = 380;
      pipe2.y = pipeY;
      // fly through a pipe, gain a point
      if (pipe1.x == thing.x || pipe2.x == thing.x)
      score++;
      scoreText.text = String(score);
      assets.playSound("ding");
      // spacebar to fly
      if (ce.input.justDid("fly"))
      if (!gameOver)
      velocity = -7;
      assets.playSound("whoosh");
      // character falls with gravity
      velocity += gravity;
      thing.y += velocity;
      // prevent flying through the top and bottom of screen
      if (thing.y <= 0)
      thing.y = 0;
      if (thing.y >= 430)
      thing.y = 430;
      // collision
      thingBounds.y = thing.y + 2.5;
      thingBounds.x = thing.x + 2.5;
      pipeBoundsTop1.x = pipe1.x + 5;
      pipeBoundsTop1.y = pipe1.y;
      pipeBoundsBottom1.x = pipe1.x + 5;
      pipeBoundsBottom1.y = pipe1.y + 495;
      pipeBoundsTop2.x = pipe2.x + 5;
      pipeBoundsTop2.y = pipe2.y;
      pipeBoundsBottom2.x = pipe2.x + 5;
      pipeBoundsBottom2.y = pipe2.y + 495;
      // lose the game
      if (thingBounds.intersects(pipeBoundsTop1) || thingBounds.intersects(pipeBoundsBottom1)
      || thingBounds.intersects(pipeBoundsTop2) || thingBounds.intersects(pipeBoundsBottom2))
      die();
      // death, show score and click to play again
      private function die():void
      if (!gameOver)
      gameOver = true;
      assets.playSound("smack");
      ce.stage.removeEventListener(MouseEvent.MOUSE_DOWN, fly);
      // prevent clicking briefly to let the player see their score
      var t:Timer = new Timer(500, 1);
      t.addEventListener(TimerEvent.TIMER_COMPLETE, cont);
      t.start();
      function cont(e:TimerEvent):void
      textField.text = "Score: " + score;
      scoreText.text = "";
      eaze(box).to(0.4, { y: 150 } );
      eaze(textField).to(0.4, { y: 150 } );
      ce.stage.addEventListener(MouseEvent.MOUSE_DOWN, startOver);
      // reset everything, start the game again
      private function startOver(e:MouseEvent):void
      eaze(box).to(0.2, { y: -200 } );
      eaze(textField).to(0.2, { y: -200 } );
      score = 0;
      pipe1.x = 380;
      pipe2.x = 620;
      thing.x = 100;
      thing.y = 200;
      velocity = 0;
      gravity = 0.4;
      gameOver = false;
      randomizePipeY();
      ce.stage.removeEventListener(MouseEvent.MOUSE_DOWN, startOver);
      ce.stage.addEventListener(MouseEvent.MOUSE_DOWN, fly);
    Thanks,

    Yeah, it should. But, weirdly, it's not...
    Here's what I see on the device emulator with Adobe Flash Pro :
    And here's what I see when I install the apk on my Android device :
    Can't understand why it's happening.
    The game was in an example package of the citrus engine : https://drive.google.com/file/d/0B5-MjJcEPm3lMU5jSzB0dDBualk/view?usp=sharing

  • I have update to iOS 8.1.3, and I cannot open both centers, or use and cancel apps, or the screen change color to gray, or the display do not recognise that I touch it, and more. If I restart it, I find another mistake in next five hours.Help me pls.

    I have update to iOS 8.1.3, and I cannot open both centers, or use and cancel apps, or the screen change color to gray, or the display do not recognise that I touch it, and more. If I restart it, I find another mistake in next five hours. Help me please.
    iOS 8.1.3
    iPhone 5s 32 GB
    CPU 64 bit

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.0.1. For the iPad Mini the iOS is 6.0.2. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
     Cheers, Tom

  • Can I erase older versions of mobile apps in the mobile applications folder within iTunes folder

    Can I erase older versions of mobile apps in the mobile applications folder within iTunes folder without distuebing their running in my iPhone and iPad? Thank you

    should be okay.
    in any event, if something happens, you can always redownload previous purchases:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store (the music feature currently works in the US only)

  • HT201401 My iPhone3GS has started crashing. I'll be mid-phone call, or using an app, when the screen will go dark. I have to restart it. Then it shows low battery sign (even though it was 100%). Within 1 minute of charging, iphone starts. Pl. resolve.

    My iPhone3GS has started crashing. I'll be mid-phone call, or using an app, when the screen will go dark. I'll have to do a restart. It dumps to the warning screen that there's no power and needs to be plugged in.
    Once I connect the phone to a power source, in a couple of minutes it's ready to roll again, and displaying a "full battery" icon.
    The phone is almost always fully charged when this happens, and I don't get a crash when the phone is plugged into a power source.
    Took my iphone to apple store, they informed that battery is very good and there is no need for replacement. Might be there is a problem with iphone motherboard. But they can't repair it as my 3GS crossed warranty.
    Where should I go to repair this. Within 2 years...this 32GB 3GS is almost garbage for me with no support from apple. I am ready to send it to apple for repairs and pay the repair charges.
    I tried everything... deep reset ... factory settings .... nothing is working... Apple staff pl. take care of your customers ...

    This is a User to User Forum... You are Not Addressing Apple here...
    iPhone User Guide
    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    Restart / Reset
    http://support.apple.com/kb/ht1430
    Backing up, Updating and Restoring
    http://support.apple.com/kb/HT1414

  • I restarted my computer, but the screen only shows a flashing folder icon with a question mark. What to do?

    I restarted my computer, but the screen only shows a flashing folder icon with a question mark. What to do?

    It means that the system boot directory can't be found.
    See this support article for suggested actions
    Also see this discussion.

  • Developing mobile apps for the blackberry platform

    Hello all
    I'm interested in developing mobile apps for the Blackberry smartphone and read that the best way to do it is with Java. Any advice on how to do this?
    I would be starting from scratch as I don't have a programming background but am keen to learn. Also can anyone recommend any introductory books that are really good at learning Java?
    Many Thanks
    praetor

    Hi praetor,
    welcome to the SDN.
    Programming for a mobile device is sort of advanced and you need to know the basics first. As you have no programming background this is even more important.
    Do yourself a favor and forget about the blackberry for a few months and learn programming basics first.
    Here are a few links to get you started with the Java SE (Standard Edition, for your local PC, nothing fancy):
    [Sun's basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    [Sun's New To Java Center|http://java.sun.com/learning/new2java/index.html]
    Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    jGuru
    A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch
    To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    [Yawmarks List|http://forums.devshed.com/java-help-9/resources-for-learning-java-249225.html]
    [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance]
    [http://javaalmanac.com|http://javaalmanac.com]
    Bruce Eckel's [Thinking in Java(Available online.)|http://mindview.net/Books/DownloadSites]
    Joshua Bloch's [Effective Java|http://www.amazon.com/Effective-Java-2nd-Joshua-Bloch/dp/0321356683]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance ]
    James Gosling's [The Java Programming Language|http://www.bookpool.com/sm/0321349806]
    Gosling is the creator of Java. It doesn't get much more authoritative than this.
    Joshua Bloch and Neal Gafter [Java Puzzlers.|http://www.javapuzzlers.com/]

  • Iphone seems to be working but only shows apple logo, itunes sees the phone normally, when i restored it appeared successful and itunes tried activating my phone but the screen only shows apple logo nothing else???

    my iphone is detected in itunes as normal, but screen on the phone only shows apple logo??? restored and everything but no difference its weird, it restores successfully and stuff but once done the screen only shows apple logo.. note:while restoring everything goes through as normal on the phone it shows the bar loading etc.. but once complete just stays on apple logo.

    It can take a few minutes to reinitialize, but if it stays on the Apple logo for as much as 10 minutes there is something seriously wrong. Try restoring again, and set up as a new phone rather than installing your backup. If this fixes it you have a corrupt backup. If this doesn't fix it the phone is broken. Or possibly jailbroken.

  • I have a macbook pro 10.6.8. The screen displays vertical grey lines how do i fix it?

    I have a macbook pro 10.6.8. The screen displays vertical grey lines. I tried Crtl.command.eject... Did not work. I tried Command.crtl.p.r. way; Didnt work. What is wrong with my mac and how can i fix it?

    NVRAM reset is command, option, P and R.
    Restart the computer and immediately hold the four keys down. Keep holding the keys down, and let the Mac chime three times, then release the keys. Be patient it could take some time.
    That being said what you describe may be a hardware issue, so the NVRAM reset probably won't work.
    You can get a free diagnosis at an Apple genius bar. Make an appointment and take the MBP in,
    http://www.apple.com/retail/geniusbar/

  • I have an Ipod touch. Since this morning I am not able to open any of my purchased apps. The screen briefly flashes but the apps don't start. Can anyone help?

    I have an Ipod touch. Since this morning I am not able to open any of my purchased apps. The screen briefly flashes but the apps don't start. Can anyone help?

    - Try resetting the iPod. Nothing will be lost.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Then download/install new app.
    - iOS: Troubleshooting applications purchased from the App Store

  • My daughter my daughter dropped her sisters ipod gen 4 32gb and now the screen only comes up with a white sceen

    My daughter dropped her sister Ipod gen 4 32Gb and now the screen only comes up with a white screen. What should I do?

    If you have an Apple Store near you, take it there and have them check it. If you don't, I would send it in for service.

  • TS1702 I am trying to download and app but the screen froze at the end where it said ready to download  and I was required to press OK

    I am trying to download an app. but the screen on my iphone 4S has frozen when I reached the screen saying it was ready to download and I was
    seeing an "OK" button to press.  Nothing happens and I can't get out of the screen.  When I shut off the phone and cut it back on and go to "apps"
    the frozen screen appears again.  Any help???

    Have you had an issue with a previous purchase from iTunes or has your credit card expired? Even though it is a free app, you may have to update your payment information, since you already have a credit card on file. They have to be updated in iTunes.
    If none of that applies, try signing out, Restrt and sign in again.
    Settings>iTunes & App Store>Apple ID. Tap your ID and sign out. Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Go back to Settings>iTunes & App Store>Sign in and then try again.
    if that doesn't work, you may have to contact iTunes Store Support and seek their assistance.
    https://expresslane.apple.com/Issues.action

  • HT201269 one fine day, my i phone just hangup lost all contact detail. The screen only show a picture depicting cable connection to iTune. I have tried to restore iphone to factory setting but not working .  May i know how to proceed to recover lost conta

    one fine day yesterday, my i phone just hangup lost all contact detail. The screen only show a picture depicting cable connection to iTune. I have tried to restore iphone to factory setting but not working .  May i know how to proceed to recover lost contacts.

    I have taken it back to the Apple store genius bar, but they say they don't see anything wrong. Well unless you use it all day and experience the problems when they happen, you wont see anything wrong. But there are lots wrong with it. But this would be the same store as I purchased the phone. And they backed up my old Iphone 4, but were not able to get anything to load back onto my new phone. So, I lost pretty much everything. But over time, some of my contacts have started showing up, although i am still missing over 800 of them.

  • TS3274 my IPad has one half of the screen with vertical multi colored stripes and the other half is normal.  Has anyone experienced this and has a solution?

    My IPad has one half of the screen with vertical multi colored stripes and the other half is normal.  Has anyone had this problem and if so is there a solution?

    You could have a hardware issue, but try this and see if it helps.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • TS3274 Hi I have a 1st generation iPad 64Gb, my problem is when I am surfing the Internet or trying to read a magazine that I have bought and downloaded, the iPad closes down the app and the screen goes blank and then back to the home page. Any ideas?

    Hi I have a 1st generation iPad 64Gb, my problem is when I am surfing the Internet or trying to read a magazine that I have bought and downloaded, the iPad closes down the app and the screen goes blank and then back to the home page. Any ideas?

    Hi Fayed11,
    Welcome to Apple Support Communities.
    You may find this article useful for troubleshooting any apps on your iPad that aren't behaving as expected:
    iOS: Troubleshooting applications purchased from the App Store
    http://support.apple.com/kb/ts1702
    Have a great day,
    Jeremy

Maybe you are looking for

  • Premiere CC 2014 freezes while editing

    I'm not sure how common this is, but I know others have complained about Premiere CC 2014 crashing their systems. For me, it freezes after editing for a while. During playback the video will freeze while the audio continues. Eventually the entire pro

  • Problem with installer

    Hello, I have a problem with my installer. Every time I try to install / upgrade a new application, it opens, but nothing happens. Thank you for your help, Pauline

  • Copy button disabled on My trips and expenses

    Hi, We are implementing the travel and expenses functionality under ESS. On the My trips and Expenses screen (screen with list of expenses), if we highlight an expense that has been processed all the way through (posted to FI), the copy button and th

  • Quick Poll Greyed Out  - unable to edit

    Hello, We have a series of quick polls assigned to individual campaigns and all are 'ongoing'.  These are then assigned to KM IViews and assigned to users via roles etc. Last week we were able to edit the quick poll, editing the text, participants et

  • Zooming Out causes Layers to Look Misaligned - Problem

    So as the title suggests, I have noticed that layers become visually misaligned when zooming. Here is some wonderful proof of the problem right here. All hail imgur. 100% zoom - Fine 200% zoom - Fine 50% zoom - Issues 25% zoom - Issues This is bad, b