March 8, 2012

 

Android global application state how-to

Very simple:

((YourApp)getApplicationContext()).doSome();

YourApp extends Application. Don't forget to register application in manifest. That's all. YourApp will live between Activity recreating on screen rotation for example (which was my problem).

Labels:

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?