Search code examples
androidandroid-service

Why would someone extend the Application class in Android?


Can anyone explain the need for class A extends Application. Why would we possibly do it in Android?


Solution

  • Application is things that will be global to the entire application regardless of current activity. The following tutorial is from an Android Bootcamp and its current focus is about the Application class. (It is a bit out of context without the rest of the series but it does demonstrate its use) http://www.youtube.com/user/MarakanaTechTV#p/c/E953C0B85B50AB62/8/jd_V7a6xhQc