user1393851
user1393851

Reputation: 3

Menu on Android devices without a menu button

I am trying to build an Android application and want a menu on it. The point is that the menu options only work with a menu button. So what about the new mobiles that don't have this button. Ok, I can use

openOptionsMenu(); 

and open the menu programmatically but when I touch the screen, the menu disappears.

What is the simplest way to make a static nice menu which looks like a real one but not using the menu button?

Upvotes: 0

Views: 917

Answers (2)

jiduvah
jiduvah

Reputation: 5168

I believe android took the menu button out for a reason, I can't imagine it would be a good idea to try and make your app look like it has a static menu button. Maybe you should reconsider you UI design and look into action bars

Upvotes: 0

Tony
Tony

Reputation: 2425

If a device does not have a menu button and the application creates menu options a soft menu button will be displayed. This is the case for Galaxy Nexus, HTC One X, HTC One S etc.

However you really should be looking to create an ActionBar and having your menu items inside the ActionBar.

Upvotes: 2

Related Questions