Removed unused imports, added an additional error message to Android
Application