Using multitouch with android home button

How do I use multi-touch with the android home button? While pressing a button in an app I want to press the home button.

Try this and adapt to your code:

TouchAction touchAction=new TouchAction(driver);

Where pressNativeHome() just calls:

adb -s «device_id» shell input keyevent 3

Not having the release() it leaves the button pressed.

That worked!!! Thank you!!!

@Telmo_Cardoso @appium123
another way for home :slight_smile:

((AndroidDriver) driver).pressKeyCode(AndroidKeyCode.HOME);
1 Like