Android targetSdk and the Legacy Soft Menu Button

Nov 05 2012

At Google I/O 2012, Google made it a point to stress that Android developers should be leveraging the highest API level for the targetSdk attribute in our application's manifest. They stated that essentially it should be the latest version of Android available. As I hadn't been doing this in the past, when I got back to the client site I immediately started setting this attribute to the latest version available, API level 16 (Jelly Bean).

What I didn't realize, is that this attribute determines whether or not the legacy Menu button appears in the soft key button tray for devices that only have soft keys. If your application isn't up to the design standards that Google recommends for ICS+ and you have legacy menu options in your application, you'll need to ensure that the API level you specify for targetSdk is no greater than level 10, Gingerbread. If you specify anything above that, your users will lose their ability to use Menu options.

About the Author

Eric Miles's picture

I have over 14 years of experience in technical architecture, systems development and maintenance, object oriented design, application programming, research and development, and user support. My experience is in retail, telecommunications, human resources, insurance, finance, and health care implementing enterprise critical applications. I have a passion for open source tools and the Android platform. I am an Oracle Certified Java Programmer, Oracle Certified Web Component Developer, Oracle Certified Business Component Developer, and Oracle Certified Enterprise Architect.

 

Disclaimer

The words and opinions expressed here are those of each article's respective author, and do not necessarily represent the views of CapTech Ventures.