Category: Android

Learning tips on Android

Android: Singleton vs ApplicationContext

Well here’s a topic that’s hotly debated in Android design. Technically, both of them could work for rapid development. However, I prefer Method B as you can modularize your singletons to support specific functions in each class definition. Best if you can work without them, but its often not the case. Method A – Extending Application Context Step 1: Create… Read more →