Home > database >  How is Samsung Alarm app able to display a notification-like overlay on top of any screen the last f
How is Samsung Alarm app able to display a notification-like overlay on top of any screen the last f

Time:06-07

Basically what's happening here is an overlay being displayed on any screen (meaning it is not a dialog, nor a notification, nor a ui service)

The closest I can think of is a custom toast message, where toasts usually lasts on any screen at any app, but toasts can't last more than 3.5 seconds as shown

CodePudding user response:

read about SYSTEM_ALERT_WINDOW permission. it will allow you to drawn on screen on top on your/other apps

BUT afaik above perm will let you draw on top other apps, but not covering system GUI. on your GIF sticky widget with timer is drawn also on top of notifications, thats not possible in Android system even with SYSTEM_ALERT_WINDOW. so yet again Samsung (in fact any manufacturer) modified Android and adjusted to own purposes, made some new possibilities and gave proper permissions for own apps... and you won't use them as you don't know/have API and don't have privileges, which you can't even ask for

  • Related