[Android][Extension] Fixed device capabilities listener to support 'on' ...

...and 'add'

The original implementation diffs "onEventName" and "addEventListener(eventName)"
by the variable name. Now add a variable ``isOn`` to diff these two method
manually, which is more robust.