The Application object

An Application object has a well-defined lifecycle and can be used as a data structure for holding an application's global state.It's created when the process for your application is created, and it isn't bound

to a particular Activity or Service. This means it's a great and extemely simple way to hold onto and share

nontrivial and nonpersistent data between activities and services within your applications.

猜你喜欢

转载自zsjg13.iteye.com/blog/2195997