¡@

Home 

2014/10/16 ¤W¤È 08:10:08

android Programming Glossary: applicationex

More efficient way of updating UI from Service than intents?

http://stackoverflow.com/questions/2621395/more-efficient-way-of-updating-ui-from-service-than-intents

class to represent your global application context. In my apps I create a subclass of Application ApplicationEx for example and I tell my app through the manifest that this is the class to instantiate as MY global application context... class to instantiate as MY global application context. For example application android name com.mycompany.myapp.app.ApplicationEx android icon @drawable app_icon android label @string app_name I can now add methods to ApplicationEx for activities and.. android icon @drawable app_icon android label @string app_name I can now add methods to ApplicationEx for activities and services to use to communicate. There is always a single instance of your global application context..