Yes, my battery is pretty decent now, but I had to configure things a bit more conservatively, with less frequent syncing, no live wallpapers, passive widgets only, etc. I can go a whole day sometimes.
Gregory, thanks for that information, it is very useful. I retried the app and it seems to work fine now, but if there is a problem again, I will use that code.