Skip to content Skip to sidebar Skip to footer

How To Select All The Text In A EditText With Adb?

Is it possible to select all the text in an editText with ADB in android? Right now, I'm using the command: sudo /Applications/sdk/platform-tools/adb shell input keyevent KEYCODE_D

Solution 1:

try long press on the textedit with adb swipe

adb shell input swipe 100 200 100 200 1000

Solution 2:

Throw the following command on an active text box

start /B adb shell input keyevent KEYCODE_MENU & adb shell input keyevent KEYCODE_A perl -e 'select(undef,undef,undef,.3)' & adb shell input keyevent KEYCODE_BACK

The second line removes the activated menu from your app if it has one. If it does not, run only the first line.


Post a Comment for "How To Select All The Text In A EditText With Adb?"