canvas

A modern smartphone floating at an angle, displaying a vibrant live wallpaper shifting from autumn to winter, surrounded by glowing neon data streams and an efficient battery icon with a green leaf.
Articles, Solutions

Battery-Efficient Canvas Rendering: Lessons From a Live Wallpaper

Building a live wallpaper is one of the best ways to learn Android’s rendering pipeline — and one of its harshest teachers of battery discipline. When your app draws on the home screen all day, every wasted frame eventually shows up in someone’s battery stats. Over the years building Seasons Live Wallpaper, I’ve learned that […]

, , , , , ,
Tutorials

Animating the Seasons: Building a Particle System with Android Canvas

One of the most satisfying things to code is a particle system. Snowflakes, falling leaves, fireflies — simple physics, beautiful results. Here’s how Seasons Live Wallpaper handles its snow, and how you can build something similar. The Particle Data Class data class Snowflake( var x: Float, var y: Float, val radius: Float, // visual size

, , , , ,
Solutions

Android Canvas Issue Starting API Level 14

Recently I had to change the target SDK on one of my applications, but by doing that, I ran into some problems with the Android Canvas.  In this application I use an animation which simulates an explosion. So, I tested my app and I noticed that everything was working OK, until I changed the target

, , , ,
Scroll to Top