I am looking into API document about Activity. I see a method ‘setDefaultKeyMode’, but I can’t understand clearly what it is for. Would anybody please explain about which all key is affected and how does the default behaviour differ from other options.
I am looking into API document about Activity. I see a method ‘setDefaultKeyMode’, but
Share
There isn’t that much to understand–it’s to determine how key events that aren’t handled in any other way (like by
onKeyDown) are handled. By default, they just “go away”. (Not system keys, app keys.)The method’s Javadocs describe the other modes.