Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Removing the Need for a Menu Button on Android

DZone's Guide to

Removing the Need for a Menu Button on Android

· Java Zone
Free Resource

Try Okta to add social login, MFA, and OpenID Connect support to your Java app in minutes. Create a free developer account today and never build auth again.

To many, the inclusion of a menu button on Android phones is a bit messy. After all, the usability of iOS devices is spot on without this function. It makes me happy to see that Google is encouraging people to move away from using the menu button as more devices more to Ice Cream Sandwich, and to use the action bar instead. 

In the blog post,Tim Bray summarises by saying: 

If I had to put this whole post into one sentence, it’d be: Set targetSdkVersion to 14 and, if you use the options menu, surface a few actions in the action bar with showAsAction="ifRoom".

Of course you'll still need to worry about those pre-Honeycomb devices, but Tim's post describes how you can handle this situations fairly easily. 

As an iOS user, I always found the menu button on Android a bit clumsy. The removal of the button allows for a more consistent user experience on apps targetted at either platform, and that has to be a good thing for the end user. 

Is there anyone out there who will actually miss the Menu button? 

 

Build and launch faster with Okta’s user management API. Register today for the free forever developer edition!

Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}