My service receives some notification which might happen while the keyguard is active. Is there some way to show a Toast message in this state? First attempts showed that the Toast is shown "behind" the keyguard (i.e. it is visible if the keyguard is unlocked while the message is still shown), but not on top of the keyguard.
Is there any way I can use a Toast in this scenario or am I required to write my own activity that has the appropriate flags set to be shown on top of keyguards?
Thanks in advance!
P.S.: I am aware the user might miss the Toast, therefore a notification is also added as well, but for my personal taste I'd also like to show the message as part of a Toast (user-configurable) because the toast is in my opinion better suited for longer messages).
If you are in the activity that is active above the keyguard then its possible. Tried in 4.4.2 and it worked.
Regards,