1

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 on Android N implemented peep mode. If anyone has any knowledge in this moment? Maybe there are some links, otherwise I did not find anything ...

phd
  • 82,685
  • 13
  • 120
  • 165
  • Your can add views to windows, which doesn't belong to your activity. That is how twich pip works. – Ufkoku Feb 21 '19 at 20:21
  • @Ufkoku Can you give references if there are examples? – Dima Chibuk Feb 21 '19 at 20:34
  • 1
    I think if you use Android Services + Window manager (To add UI), You can do this. But the Pip mode transitions won't be there. https://stackoverflow.com/questions/19539887/possible-to-inflate-an-xml-layout-in-a-service-android/19540098#19540098 – Sudhi Feb 21 '19 at 20:39
  • @Ufkoku Thanks, I will watch – Dima Chibuk Feb 21 '19 at 20:45
  • IIRC, PiP was added to phones/tablets in O. It only existed on Android TV prior to that. – CommonsWare Feb 22 '19 at 01:19
  • @CommonsWare I do not agree, it was developed long ago, and was present in Marshmallow, and even earlier. It was just closed, as it had many bugs, you can safely activate it in Nougat, even the standard settings of android studio allow you to do this without errors, just there are many nuances, everything below Oreo will not know how to behave ... – Dima Chibuk Feb 22 '19 at 11:36
  • Well, [Google seems to think that it is only on phones and tablets in Android 8.0 and higher](https://developer.android.com/about/versions/oreo/android-8.0). Nobody should be assuming that some undocumented/unsupported PiP mode will work across all the phones and tablets that were released prior to Android 8.0. Manufacturers did not need to support such a PiP mode and may not have tested what is there. – CommonsWare Feb 22 '19 at 12:01
  • @CommonsWare Yes, that's right, officially it is with android, but it is fairly well supported on android n, it seems to work well. – Dima Chibuk Feb 22 '19 at 13:04
  • "it is fairly well supported on android n, it seems to work well" -- your question indicates otherwise. – CommonsWare Feb 22 '19 at 13:23
  • @CommonsWare That's right, thanks to the link that I indicated "Sudhi", I found a solution. Having found as much documentation with this functionality. – Dima Chibuk Feb 22 '19 at 13:31
  • That is not picture-in-picture mode. That is something else. It can be *used* like picture-in-picture mode, albeit with some security issues. – CommonsWare Feb 22 '19 at 13:40
  • @CommonsWare I’m not saying that this link solved my problem, I’m saying that blogging to her I found a solution to the pip mode. Although the link option offers a davolno alternative solution, although it is problematic in terms of optimizing for older versions of Android. – Dima Chibuk Feb 22 '19 at 13:59

0 Answers0