Where can I find examples or tutorials about creating a custom android lockscreen?

后端 未结 5 1094
再見小時候
再見小時候 2021-01-01 07:13

I\'m interested about Android and have been trying to find an example or tutorial about creating a custom lockscreen.

I wanna create new lock screen for easy accessi

5条回答
  •  甜味超标
    2021-01-01 07:29

    Lock screen widgets were deprecated in Android 5.0 and above. To help fill the void, you can use the Adenda SDK. It extends the Android stack to let you design and program your layouts on the lock screen like you would with any other app, and feed them into the SDK.

    For example:

    AdendaAgent.addCustomFragmentContent (Context context, String actionToPerformOnUnlock, String your.fragment.name, Bundle fragmentArgs, String identifier, boolean bDisplayUntilCancelled)
    

    I'm affiliated with Adenda for full disclosure

提交回复
热议问题