How to force a widget to appear on lock screen programmatically (Android)

删除回忆录丶 提交于 2019-12-14 03:23:58

问题


I want to force a widget to appear on the lock screen in Android.

Any ideas or code examples?

Thanks in advance.


回答1:


First, the standard Android lockscreen framework only supports app widgets from Android 4.1 through 4.4, which is a steadily shrinking portion of the Android device ecosystem.

Second, there is no programmatic means, in standard Android, to force the user to add an app widget to the home screen or to the lockscreen.



来源:https://stackoverflow.com/questions/41840622/how-to-force-a-widget-to-appear-on-lock-screen-programmatically-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!