The best programming techniques are often the shortest and simplest—the hacks. In this compact and infinitely useful book, Android expert Carlos Sessa delivers 50 hacks that will save you time, stretch your skills, and maybe even make you smile.
About this Book
Hacks. Clever programming techniques to solve thorny little problems. Ten lines of code that save you two days of work. The little gems you learn from the old guy in the next cube or from the geniuses on Stack Overflow. That's just what you'll find in this compact and useful book.
The name 50 Android Hacks says it all. Ranging from the mundane to the spectacular, each self-contained, fully illustrated hack is just a couple of pages long and includes annotated source code. These practical techniques are organized into twelve collections covering layout, animations, patterns, and more.
- Hack 3 Creating a custom ViewGroup
- Hack 8 Slideshow using the Ken Burns effect
- Hack 20 The Model-View-Presenter pattern
- Hack 23 The SyncAdapter pattern
- Hack 31 Aspect-oriented programming in Android
- Hack 34 Using Scala inside Android
- Hack 43 Batching database operations
- Plus 43 more hacks!
Most hacks work with Android 2.x and greater. Version-specific hacks are clearly marked.
About the Author
Carlos Sessa is a passionate professional Android developer. He's active on Stack Overflow and is an avid hack collector.
Table of Contents
Chapter 1. Working your way around layouts
Chapter 2. Creating cool animations
Chapter 3. View tips and tricks
Chapter 4. Tools
Chapter 5. Patterns
Chapter 6. Working with lists and adapters
Chapter 7. Useful libraries
Chapter 8. Interacting with other languages
Chapter 9. Ready-to-use snippets
Chapter 10. Beyond database basics
Chapter 11. Avoiding fragmentation
Chapter 12. Building tools