Android 8.0 (API level 26) allows activities to launch in picture-in-picture (PIP) mode. PIP is a special type of multi-window mode mostly used for video playback. It lets the user watch a video in a small window pinned to a corner of the screen while navigating between apps or browsing content on the main screen.
Questions tagged [android-picture-in-picture]
84 questions
1
vote
0 answers
Using picture in picture mode with ARCore Android
Currently working on an application where we are looking to implement Picture in Picture (PiP).
However, the camera feed in the UI that we want to continue is implemented from BaseArFragment from Sceneform.
The issue that we are facing is this. When…

kjanderson2
- 1,209
- 12
- 23
1
vote
1 answer
Android Picture in Picture Potrait Mode
I am trying to implement Picture in Picture mode but so far as per the example given the only orientation I see is landscape mode.
https://developer.android.com/guide/topics/ui/picture-in-picture
I am trying to have a functionally similar to the…

Maria
- 377
- 2
- 15
1
vote
1 answer
Android picture in picture appears over the black square
I've got a strange problem with Android Picture-in-picture.
I manage a mobile app which uses Picture-in-picture feature with the Exoplayer and some fragments.
The activity has such flags:
android:name=".activities.main.MainActivity"
…

Yevhen Ivanets
- 26
- 4
1
vote
2 answers
AndroidStudio 4 says enterPictureInPicture is depracated as of API 26 - this is incorrect, right?
AndroidStudio screenshot showing the warning:
Yet what I find here is:
Android 8.0 (API level 26) allows activities to launch in picture-in-picture (PIP) mode.
PIP is a special type of multi-window mode mostly used for video playback. It lets…

spartygw
- 3,289
- 2
- 27
- 51
1
vote
1 answer
OnePlus (Android 10) - Main screen freezes when on PIP Mode
android:launchMode="singleTask"
android:supportsPictureInPicture="true"
android:screenOrientation="portrait"
android:configChanges="screenSize|smallestScreenSize|screenLayout"
android:theme="@style/Theme.AppCompat.Light.NoActionBar.FullScreen"
androi…

Pranav Kapadne
- 21
- 4
1
vote
0 answers
Emulate picture in picture mode in Android
I am making a highly responsive app and I'd b interested in seeing what it looks like basically at any arbitrary size. I have a Samsung Tab A tablet that has picture in picture mode for all apps, and I can resize, so I can see what my app looks like…

excalibur1491
- 1,201
- 2
- 14
- 29
1
vote
0 answers
Trigger Picture in Picture in new activity instead of current
I'm on activity A.
I want to go to activity B, and minimize A to Pip.
I've tried :
enterPictureInPictureMode()
startActivity(B)
but the result is A minimized and then change to B, without any activity on full screenMode.
How i achieve this?

Adriel
- 21
- 1
1
vote
0 answers
How can I use Picture in Picture mode on Android versions below Oreo?
I'm developing an app that has the PiP mode. According to the documentation is available only from the Oreo version. Is there any other way (official or unofficial) to use PiP in lower versions than Oreo?

Vitor Ferreira
- 1,075
- 1
- 14
- 28
1
vote
1 answer
How to create custom layout in Picture in Picture mode?
I need to implement Picture In Picture mode in my app.
In my app time clock page when i choose time, timer is start in picture in picture mode view. Remaining class should big screen?
In picture in picture view, how to create custom layout?
Note:…

New
- 152
- 1
- 2
- 12
1
vote
0 answers
Android N picture in picture
I would like to know whether it is possible to implement Pip mode in Android N or below? There is no problem with the Android O version, everything works fine according to the documentation. But some of my users send me videos and screenshots that…

Dima Chibuk
- 35
- 7
1
vote
0 answers
How to set video URL instead of local video resource for PIP feature?
I am implementing Picture in Picture feature in android application. But I stucked to play the remote URL in Picture in picture mode in movie view for media player.
I am following the below google sample:
android-PictureInPicture
If anyone have…

Jagdish
- 2,418
- 4
- 25
- 51
1
vote
1 answer
Is there a way to restrict Picture-in-picture to only work within an application and not persist when backgrounded?
Is there any way to allow PiP functionality only while the user is within an application?
Ideally, the user can launch PiP, but when they background the app the PiP would dismiss and background playback would continue.

Mark Han
- 2,785
- 2
- 16
- 31
1
vote
1 answer
Picture In Picture - Aspect ratio is too extreme
Ok, I'm using the new Picture in Picture (PIP) mode for Oreo with a custom aspect ratio that I calculate with this:
Display display = getWindowManager().getDefaultDisplay();
Point size = new Point();
display.getSize(size);
int width…

Keysaw
- 227
- 4
- 19
1
vote
2 answers
Using Picture-in-picture feature with Android O
I have created an android app to check the feature Picture In Picture mode of Android O.
But i facing an error while running this application.
setPictureInPictureArgs: Device doesn't support picture-in-picture mode
java.lang.IllegalStateException:…

Rahul M Mohan
- 293
- 1
- 3
- 12
1
vote
0 answers
Picture in Picture Surfaceview camera display
I have a surfaceview which shows the camera preview display I want another view over this view which shows the zoomed part of this display in a small frame on top left corner like picture in picture view
Something like this is it feasible to have…

Aashish Bhatnagar
- 2,595
- 2
- 22
- 37