On Sun, Sep 23, 2012 at 10:18 AM, dashman <[email protected]> wrote: > How can I display a menu icon (3 vertical dots) in ICS devices and > yet maintain compatibility with android v1.6+.
Have a targetSdkVersion of 11 or higher, and probably 14 or higher. This will give you an action bar (vs. the classic title bar) on API Level 11+ devices. Your former options menu will either appear via a tap on the ... overflow menu affordance, or by pressing an off-screen MENU button, depending on the device. Older devices will continue to display the classic options menu. If you wish, consider using ActionBarSherlock, to have the ICS behavior working back to API Level 7. Further reading: - http://android-developers.blogspot.com/2012/01/say-goodbye-to-menu-button.html - http://commonsware.com/blog/2012/06/08/removing-rogue-menus.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy _The Busy Coder's Guide to Android Development_ Version 4.1 Available! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

