I have the following problem:
Our company manufactured an Android device that does not have a return button (not physical, not at the bottom of the screen), so I can’t go back to the previous action / screen. Now I need to test an application developed by a third-party developer, which saves the settings only when returning to the previous screen.
Is there a way to return to the previous screen or emulate the user by pressing the back button?
I found this to return to HOME (Android main screen):
adb shell am start -a android.intent.action.MAIN -c android.intent.category.HOME
Also read the description of Activity Manager and Exerciser Monkey at these links:
http://developer.android.com/tools/help/adb.html#am
http://developer.android.com/tools/help/monkey.html
But could not solve my problem. Does anyone know how to make this call using adb?
source
share