Discover surprise knowledge about many aspect of performance in Android apps as well as some micro-optimizations that can improve overall app performance when combined.
- Prefer static over virtual
- Use static final for constants
- Use enhanced foreach syntax for loops
- Use package instead of private access modifier with inner class
- Avoid using floating point
- Know & use libraries
- Use native methods carefully
- Avoid using enum
Battery life is the single most important aspect of the mobile user experience. A device without power offers no functionality at all. For this reason, it is critically important that apps be as respectful of battery life as possible.
See more