Is there any way to do the following process in android Automation using Appium with android driver?
Press home button from some specific screen. Put app in backgrou
Try to focus on the current activity you were in :
(AppiumDriver)driver.runAppInBackground(10);
(AppiumDriver)driver.currentActivity();
or
Try to start the same activity you were in :
(AppiumDriver)driver.runAppInBackground(10);
(AppiumDriver)driver.startActivity("appPackage","com.example.android.apis", null, null);