public interface AdbConnection
| Modifier and Type | Method and Description |
|---|---|
String |
executeShellCommand(String command)
Sends the @command to the emulator.
|
void |
sendKeyEvent(int keyCode)
Sends key events to the Android device/emulator.
|
void |
sendText(String text)
Sends text to the Android device/emulator.
|
void |
tap(int x,
int y)
Sends key event tap to the Android device/emulator.
|
void sendText(String text)
adb shell input text (TEXT) on the command line.text - to send to the device/emulatorvoid sendKeyEvent(int keyCode)
adb shell input keyevent (KEYCODE) on the command line.keyCode - to send to device/emulator.void tap(int x,
int y)
adb shell input tap (x) (y) on the command line.x - X coordinate to tap on.y - Y coordinate to tap on.Copyright © 2015. All rights reserved.