Hey, just curious... How exactly would this work to only override long
press? Do you then just count the time that the button is held down
and override it on keyup again if it was greater than some time and
send menu event if not? Or am I missing something?
On Aug 1, 10:07 pm, Mathias Lin
I found the solution, very obvious, but somehow I was always just
looking at onKeyUp, instead of onKeyDown.
Overriding onKeyDown works fine.
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_MENU) {
return true;
}
I don't think you can.
Pressing and holding the menu button to show the soft keyboard exists
for compatibility reasons - I'm not sure it would be wise to allow
developers to disable it.
On Jul 27, 12:18 pm, Mathias Lin m...@mathiaslin.com wrote:
How can I capture a long press of the device menu
Thanks for your reply. Not sure though what you mean with
compatibility reasons - in fact all phones handle it differently
anyways? Why wouldn't it be wise to allow developers to disable it? I
didn't fully get the idea.
About disabling such functions: there are situations where it makes
sense to
4 matches
Mail list logo