Thanks @willosser. The last line in my current test case looks like this:
driver.findElement(By.id("com.geos.android:id/btnLaunchMapViewer")).click();
Once this line executes, it should click on the button in my app which will then cause the second app to be started. When I do this manually, it works as expected. When I try to do it in my coded test case, the test just ends after this line and I never see the second app. I've tried adding something like this in my test case:
WebDriverWait wait = new WebDriverWait(driver, 5);
wait.until(ExpectedConditions.presenceOfElementLocated(By.name("maps")));
Unfortunately, that doesn't help. The wait just times out, the app exits and I still never see the second app. I'm guessing there's something else I need to do in order to manipulate this second app but I don't know what it is. Do I need to re-initialize the driver using the appPackage and appActivity properties for the second app? Or is that just for launching the app? Thanks again for reading this!