Hardware Accelerated Live Wallpaper

I am trying to create a Live Wallpaper that can use the HArdware acceleration on sdk 14. But the Live wallpaper that I create uses:

Canvas canvas = surfaceHolder.lockCanvas(); 

And Romain Guy has already mentioned that the Canvas created by such methods is not hardware accelerated. So, is there an alternative way to create Canvas for LWP?

ps I do not use any unsupported hardware-accelerated canvas methods.

+6
source share
1 answer

Consider using a graphics engine such as AndEngine. Using AndEngine, your privacy is hardware accelerated, and you have a good and flexible infrastructure.

Here's an example: Andengine Livewallpaper book example

+1
source

Source: https://habr.com/ru/post/920608/


All Articles