开发者

Display an alert in Android while screen is locked

开发者 https://www.devze.com 2023-03-10 07:43 出处:网络
I am looking for a way to show the user a message开发者_JAVA技巧 on an Android device even when the screen is locked. What I\'ve found is that most of the popup examples, such as SMS popups, appear on

I am looking for a way to show the user a message开发者_JAVA技巧 on an Android device even when the screen is locked. What I've found is that most of the popup examples, such as SMS popups, appear only once - but won't display again the second time the user presses the power-button to turn the screen on (but leaves it locked).

I'd love any advice the community can provide on how to display a persistent message on the lock-screen.


Tyr to use LayoutInflater and PopUpWindow class for this purpose

0

精彩评论

暂无评论...
验证码 换一张
取 消