The handler is called when for eg a button is clicked (in the original java activity). It seems to be mostly building Strings from byte data. I can probably bypass it and just add a method that will handle each case (message) that is passed to the handler.