android - Action bar overflow menu vs hardware permanent menu button -


i'd tested app on nexus 10 (android 4.2.1), , overflow menu on action bar worked fine. dumbfounded when overflow menu didn't appear on galaxy note 2. after reading android action bar not showing overflow , how control use of overflow menu in ics, realised on galaxy note 2 there's built in menu button, , "overflow menu" comes if 1 presses button.

the responses 2 questions suggest 1 should not use code there disable permanent menu button, because although has effect of (a) making overflow menu appear in action bar, apparently (b) forces same behavior in other apps too. however, me overflow menu in action bar far superior menu button, , comments left on 2 questions suggest other people think too.

my question is, possible use code disable permanent menu button in onresume(), , re-enable in onpause()? how reliable method make action bar overflow menu work in chosen app, other apps left unchanged?

just record, seems me android designers (both software , hardware) have somehow conspired create problem, , there's no easy solution. programmers think having apps work in same way on single device more important having particular app work same way across different devices. other programmers think opposite.

as others have stated, shouldn't doing this. let menu work in every other app (which depends on device of course).

also, there's no way can affect behavior of menu button in other apps wouldn't have worry whole onpause/onresume business.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -