Added native function for Android app to show messages or errors