Android Tutorial & Lessons 24: Full Screen Activity & set the 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.
12,864
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Feb 18, 2011

Android Tutorial & Lessons 24: Full Screen Activity & set the orientation

Check out the discussion @ my forum for this lesson:
http://www.cornboyz.com/

Whats up CornFanz, thanks for watching my videos, I would love it if you subscribe and give me some feedback.

In this lesson you will:
-Learn to set your Activity's orientation permanently as portrait or landscape
-Learn about the requestWindowFeature to get rid of that nasty title
-Learn to set your Activity to fullscreen
-Learn about the and setting up flags
-Bam!
-Some other sweet stuff
-subscribe
-Thumbs up this video ;)

This video is the 24th in a web series that I am creating to help you learn Android programming so you can create apps and eventually how to learn to write games for android phones. I want to explain things in a way that everyone can understand, even if you have no experience with Java, XML, C++, OpenGL, or as a matter of fact, any other programming language.




If you do have a lot of experience with programming, these first videos will be really slow for you, but my goal is to get everyone sprinting, but for now we have learn to crawl.

follow me on twitter: @cornboyz

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:

Top Comments

  • woah fuck yeah.. i just added

    Toast showtoast=Toast.makeText(getAp­plicationContext(), "Wallpaper Set", Toast.LENGTH_SHORT); showtoast.show();

    at the case R.id.bSetWallpaper: at the end after try/catch and it worked :D

    goooooood

  • I did the fullscreen and no title bar thing by putting this in the manifest under the activity tag:

    android:theme="@android:style/­Theme.NoTitleBar.Fullscreen"

    Great Tutorials man..!! THUMBS UP!

see all

All Comments (12)

Sign In or Sign Up now to post a comment!
  • hey man cool app need some help i want to be able to have Multiple Activities so like 1s activity with button which then gos to the 2 activity and so on to the next page thanks fella

  • @ciken500 in the manifest instead of putting android:screenOrientation="por­trait" change 'portrait' to 'landscape', i'm guessing that would work anyway

  • Can someone explain to me why the whole toast thing makes the wallpaper app work?

  • tnx about ur tutorial video

  • @lopatamd excellent tip, my friend! worked like a charm. props to Travis and the cornboyz familia.

  • Nice guide thx :)

  • If you want the contrary, then, how do if you want it to be landscape mode whole the time?

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