ANDROID: Add an emulatedKeypress function in the main Activity