O'Reilly logo

Beginning Android 2 by Mark L. Murphy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11

Applying Menus

Like applications for the desktop and some mobile operating systems, such as Windows Mobile, Android supports activities with application menus. In Android, this is called an options menu. Some Android phones will have a dedicated key for popping up the options menu; others will offer alternate means for triggering the menu to appear, such as the on-screen button used by the Archos 5 Android tablet.

Also, as with many GUI toolkits, you can create context menus for your Android applications. On mobile devices, context menus typically appear when the user taps and holds over a particular widget. For example, if a TextView had a context menu, and the device was designed for finger-based touch input, you could push the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required