Technology

Video Live Wallpaper, Part 1


I took a freelance coding job asking me to code a Video Live Wallpaper. Sounds easy, right? Just create a Live Wallpaper and tell Android to play a video. How hard can that be? Unfortunately, in Android 2.1, 2.2, (and possibly 2.3), you can’t play videos in a Live Wallpaper. Well, you can but it’s something you have to program yourself. And that’s the problem. This seemingly trivial project is way harder than it looks. While not exactly rocket science, it’s not exactly a “walk in the park” either.

Let me explain exactly what’s involved: (1) you have to write your own decoder, which means that (2) you need to work with the NDK.

Continue reading

Advertisements
Technology

Programming Android Apps in Emacs


Hell yeah it’s possible.

With yasnippets you can add blocks of code (menus, button clicks, etc). You have to write the macros yourself, of course. But it’s completely possible.

There’s also an android mode to help compile and debug apps.

The only catch is that sometimes the app seems to go “out of sync” with the source. Occasionally, I get wierd errors where there is supposed to be no error—like a findViewById exception on perfectly-formed XML. But the solution is simple:
Continue reading