Hi,
I am new to appium and need help with opening app from recent activity tab.
I am using android driver. I tapped on home button so my app is in recent activity list. Now how to open it back from recent activity.
Can someone help with that please… Thanks.
1 Like
First, you have to press the recent activities button
appium_client.driver.press_keycode 187
But then you have to figure out which tab to press. If it’s the last one, you can call find elements and take the last item returned. If not, then you need to search for a android.widget.TextView that has text that matches your desired application. Note that the application name can be truncated if too long. This, too, can be done by using find elements and cycling through the returned list until you find the right one. Once you’ve identified the element, click on it.
1 Like