I have created games with 3 tabs and one of the tab is the game using the onKeyDown (KEYCODE_DPAD_LEFT and KEYCODE_DPAD_RIGHT) to control the game. It is working fine if there is no tab. But now with the tab, the KEYCODE_DPAD_LEFT and KEYCODE_DPAD_RIGHT are actually controlling the tab movement instead of the game.
May I know how to let the KEYCODE_DPAD_LEFT and KEYCODE_DPAD_RIGHT is referred to the game and not the tab?
Thanks.