Android: Added input handling.