Can anyone suggest the best (fastest/efficient) method for modifying the behavior of a hardware key press based on which app has focus and also if a menu has been opened?
I'm looking to change the action of DPAD UP/DOWN to Volume UP/DOWN if certain apps have focus but then change it back if a menu is opened in the app or if focus moves somewhere the mod is not required (i.e. launcher).
The device in question runs Gingerbread if that makes a difference.
TIA
I'm looking to change the action of DPAD UP/DOWN to Volume UP/DOWN if certain apps have focus but then change it back if a menu is opened in the app or if focus moves somewhere the mod is not required (i.e. launcher).
The device in question runs Gingerbread if that makes a difference.
TIA