android: Report an error for invalid integer values