Android: how to create "application level" always-on-top view without special permissions?

Viewed 221

I want to achieve the behavior shown in this image:

enter image description here

So that the floating view is on top of every activity in the app (and ONLY inside the app).

I don't want it to be on top of any other apps, so it's NOT a system overlay.

I did a lot or research online, and all the implementations I found define this view as TYPE_SYSTEM_OVERLAY or TYPE_APPLICATION_OVERLAY when initializing its layout params, and this requires the permission android.permission.SYSTEM_ALERT_WINDOW!

but I want it to be just a normal view inside my app.

Can this be achieved?

0 Answers
Related