How do I restart this wallpaper engine after settings have been updated?

后端 未结 2 1272
小鲜肉
小鲜肉 2021-02-11 01:35

I\'m creating a live wallpaper and I\'m using this tutorial as a starting point:

http://code.tutsplus.com/tutorials/create-a-live-wallpaper-on-android-using-an-animated

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-11 02:14

    I don't know if you found your answer, but i saw this in the android ref:

    WallpaperService.Engine onCreateEngine ()

    Must be implemented to return a new instance of the wallpaper's engine. Note that multiple instances may be active at the same time, such as when the wallpaper is currently set as the active wallpaper and the user is in the wallpaper picker viewing a preview of it as well.

    chris

提交回复
热议问题