Make consistent android error messages
Android JS error handling
Common JS error handling code