Not able to automate google login on my android app

Trying to automate google login for my app but once i tap on google login button on my app, it will ask google account selection option, also that app will be google app so package and activity will be different. so can anyone tell me how can i switch from one app to another.

If you use the page/screen object model, it doesn’t matter what the activity is. Create screen objects for both your app and the screens you encounter with you interact with google login. You don’t need to “switch” apps.

Ok thnx Willosser, work for me now.