2

enter image description here

While Ride is in progress or Food is being delivered if we go back or press home then these apps shows these kind of small maps without having draw over other app permission ? How is this possible ?

ADM
  • 20,406
  • 11
  • 52
  • 83
Aadish Goel
  • 451
  • 1
  • 4
  • 12
  • 1
    Possible duplicate of [How to implement a popup overlay that can be displayed over any other app in Android](https://stackoverflow.com/questions/15990049/how-to-implement-a-popup-overlay-that-can-be-displayed-over-any-other-app-in-and) – Morrison Chang Feb 20 '19 at 02:30
  • 2
    Is it picture-in-picture feature? https://developer.android.com/guide/topics/ui/picture-in-picture – Ranjan Feb 20 '19 at 03:38
  • You can name it over lay , picture in picture etc it is just a service with UI – Haneet singh Chhabra Feb 20 '19 at 04:19

1 Answers1

0

No special permission is required to achieve this. Just picture in picture mode can help you do this.

enterPictureInPictureMode(); in onUserLeaveHint()