0

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

halfer
  • 19,824
  • 17
  • 99
  • 186
David Prun
  • 8,203
  • 16
  • 60
  • 86
  • you mean application, not activity? – berlindev Aug 17 '11 at 21:10
  • accessing singletons/complex objects from any place where you have a context: http://stackoverflow.com/questions/3755900/how-careful-should-i-be-with-thread-safety-when-creating-methods-activities-which – james Aug 17 '11 at 21:10

1 Answers1

0

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

Ashterothi
  • 3,282
  • 1
  • 21
  • 35