Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Android Tutorial & Lessons 16: hardware menu button & Menu inflater items

Loading...

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

Uploaded by on Feb 5, 2011

Android Tutorial & Lessons 16: hardware menu button & Menu inflater items:

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:
-set up a new activity
-set up the menu folder with a custom menu
-learn about the menu inflater
-learn how to access the menu button of the phones hardware
-review some stuff
-Some other sweet stuff
-subscribe
-Thumbs up this video ;)

This video is the 16th 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

  • likes, 7 dislikes

Link to this comment:

Share to:

Top Comments

  • I have a question: when I press the menu option "Start activity sweet", the activity doesn't begin, where is the error???

  • @shiningstar237 , hi zaheer,I faced same problem but I got a solution through searching on net. public boolean onCreateOptionsMenu(Menu menu),public boolean onOptionsItemSelected(MenuItem item) these 2 methods should be overriden.so, put the comments on these 2 methods in program and make these 2 methods by the, right click->source->overriden methods and choose those 2 methods, make change in these 2 methods as shown in tutorial.@ override statement do not delete.I dont know actual work of dat

see all

All Comments (60)

Sign In or Sign Up now to post a comment!
  • managed to sort it out. NOt sure how. Time to carry on with the tutorials. Thanks again and thanks so much for not charging for all this. A lot of people would I'm sure. LEGEND!!!!!!!

  • hi travis thanks for the vids. Having a problem with this one. Am getting error of unreachable code on the line MenuInflater inflater = getMenuInflater();

    Have imported Menuinflater and all my code seems to match yours. I realise error must mean the code will never be called but not sure what i am doing wrong and cant move on with the error. Any help from anyone would be great.

  • I'm having that same Resource issue some of you other guys are having... anything with 'R' is not registering. Its weird how this just pops up and won't go away. Saves and Cleans don't do the trick. Did anyone find a fix to that yet?

  • @bollit0 @Sandfeld : me too ! what's wrong with our code?

  • YES FINALLY!!!!

    thx man!

  • can i have your babies Travis??

  • @blu3fish479 can you link it ?

    I cant find the fix

  • @1smawley awesome found it. thanks a lot! :)

  • @blu3fish479 yea... it was something small, go to the mybringback site and look for travis android help under the blog section

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