How to handle redirects from one app to another

I’m creating a test script for an Android app using Java and I am stuck in automating the scenario below which involves redirection from 1 app to another.

  1. Press a button in App1 which will redirect the user to App2
  2. Validate fields in App2 and press a button that will return user to App1
  3. Perform some more tests in App1

My script is failing in Step 2 since the android driver does not recognize the UI elements in App2. Can someone help me in how to handle this?

Thanks a lot!