On Mon, Jan 21, 2013 at 7:44 AM, Matthew Fleming <mgf...@gmail.com> wrote: > I'm trying to adapt a phone app for tablets and have run into a problem. > When the menu button is pressed, it displays the context menu in the usual > way at the bottom of the screen, for phone AVD's but not tablets.
That is the options menu, not a context menu. > I > confirmed this with a simple test application, created with the "Android > Application" template. If I set the target SDK to 10 or less, then I get the > bottom menu for both phone and tablet, but I want to target 17 for other > reasons. I am aware of exactly zero phones running 4.x for which a targetSdkVersion of 17 will give you the legacy menu affordance in the navigation bar. Do not rely upon it existing on phones. > The only way to show the menu items, on the tablet running 4.2, is > in the action bar. But this would break compatibility with 2.x, and I hadn't > been planning on using it. Use ActionBarSherlock for an action bar that works back to Android 2.1. > Any clarifications as to why I should be seeing this behavior and > suggestions for a work-around would be much appreciated. Either use the action bar or get rid of your options menus, using something inside the UI of your activity as a replacement. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Här kan du ställa och svara på frågor om applikationsutveckling på Android: http://www.andglobe.com -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en