Improved error handling for Android

Instead of just answering `"Error"` on android devices, a proper error message will be returned now.