问题
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