I’m studying Java and Android development by myself from PDFs. I’m trying to figure out what the Application class is for, and when should it be used?
I couldn’t understand it from reading through either the PDFs or the android developers website.
Anyone care to explain it to me?
The short answer is the
Applicationclass is used to store any information that you need to persist across your activities. This could be anything from global settings to configuration to data structures, etc that you will access from multipleActivitiesand that need to maintain some sort of state. Does that make sense?