Please suggest for the issue related to android picture-in-picture mode, if my app has stack like HomeActivity -> DetailsActivity -> PlayerActivity now on clicking device home button PlayerActivity goes to PIP mode. now if I click on application icon again it starts from HomeActivity as it is Launcher activity defined in manifest. I want it to start from PlayerActivity which is in PIP mode and dismiss the PIP mode. Same experience like google maps navigation. I am aware it is achievable using single activity application but my app has multiple activities.
OR
I want to close the PIP activity(PlayerActivity) when app icon is launched. As PIP activity is running in separate task How to close all the other tasks running for the application?