[Android][Extensions] Implement on(at|de)tach function for EventHandler

This commit adds another method to add a listener.
For example:
navigator.system.attach = function() {...}