Error message My setting value and code. AndroidManifest.xml MapActivity.java APP is crashing after calling enterPictureInPictureMode(params); It works in an activity with simple buttons, but not work in the MapActivity, which is composed with complicated elements. Answer Finally, I found out the problem! Another activity extends this MapActivity. I declared PIP configuration for this activity in the AndroidManifest, it can work.