Little snippets that I wrote for Android projects that might be useful elsewhere.