Android Application Development Tutorial - 43 - Set Fixed Screen Orientation

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
11,264
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 20, 2011

Check out the full series at http://www.thenewboston.com/

Here is a link to the mybringback YouTube Channel. Go and subscribe now!

http://www.youtube.com/user/mybringback

Also, the mybringback official website:

http://mybringback.com/

  • likes, 2 dislikes

Link to this comment:

Share to:

Top Comments

  • Use android:configChanges="orienta­tion" instead of android:screenOrientation="por­trait". This way, the activity doesn't has to restart when the screen orientation is changed, so your taken picture is still there!

  • Thanks for all your time and effort Travis I really appreciate this.

see all

All Comments (33)

Sign In or Sign Up now to post a comment!
  • I learned more in these 5 minutes videos then in a whole semester on Operating Systems course. Its sad how my proffesor is super exited about talking about the theory of android programming but does not know that you have to add a class name to the manifest inorder for the program to be recognized by android. I'm really happy videos like this exist on youtube.

  • @Xonarial Note: Using this attribute should be avoided and used only as a last-resort.

  • @abhishek072 Are you programming in eclipse? Try with keyboardHidden added: android:configChanges="keyboar­dHidden|orientation"

  • Ctrl + F11 and F12 works for me, thanks 

  • @abhishek072

    It needs to work, else you're doing something wrong. Try again, check if there are any errors.

  • @Xonarial not working? Android 4.0.3 ?

  • A long time ago, I started watching these tutorials, and I got confused. Started reading "The Busy Coders Guide to Android Development" and found it incredibly boring. Came back to these, and realised I'd made a big mistake! Thanks so much for the time you took in making these tutorials.

  • Thank you for all this!

  • Hahaa I was waiting for you to call that splash sound annoying the entire 43 series whenever you started the avd^^

  • Awesome videos. Travis you rock!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more