Class Overview:
Base class for those who need to maintain global application state. You can provide your own implementation by specifying its name in your AndroidManifest.xml's <application> tag, which will cause that class to be instantiated for you when the process for your application/package is created.
SDK中的描述:Application类是为了那些需要保存全局变量设计的基本类,你可以在AndroidManifest.xml的<application>标签中进行自己的实现,这样的结果是:当你的application或者包被建立的时候将引起那个类被建立。
理解:就是说application是用来保存全局变量的,并且是在package创建的时候就跟着存在了。所以当我们需要创建全局变量的时候,不需 要再像 j2se那样需要创建public权限的static变量,而直接在application中去实现。只需要调用Context的 getApplicationContext或者Activity的getApplication方法来获得一个application对象,再做出相应 的处理。(引自huangbz321)
分享到:
相关推荐
在android中必须要有一个application,那我们用第三方的时候多个application如何使用,这是一个demo,值得你看一下
Android Application Development Android Application Development Android Application Development Android Application Development Android Application Development Android Application Development
文档详细介绍了Android的运行机制,Application类的作用和使用方法,读过之后终于不再一知半解了!
If you’re an experienced developer, you can start creating robust mobile Android apps right away with this professional guide to Android 4 application development. Written by one of Google’s lead ...
This book is for application developers (web, mobile, and desktop) who are interested in building new wearable apps, and mobile developers who already have apps on iTunes or Google Play Store and are ...
使用Application做android完全退出系统实例
自己转换的Android开发指南中的Application Licensing章节, 制作成了6寸的PDF,专门为Kindle3等6寸电纸书设计。
Android中用Application类实现全局变量
the Android SDK, and using location-based services Details how to package and publish your applications to the Android Market Beginning Android 4 Application Development pares down the most essential...
android application
Android application structure 12 Application signing 15 Data storage on the device 15 Crypto APIs 16 Device Administration 17 Summary 17 Chapter 2: Application Building Blocks 19 Application ...
Wrox Professional Android 2 Application Development
Professional.Android.2.Application.Developmen,英文版的开发教程
Android Application 对象介绍
Android Application Security.pdf
A Study of Android Application Security 学术论文
经典书籍,强烈建议阅读E文版(目前这个版本也没有中文的)。 附随书代码
Android操作Application的代码例子。用于演示通过Application来实现读写内存的功能,其中Application实例需要采用单例模式。
文档是android开发平台系统文档Application Fundamentals的翻译。
android bluetooth framework,application 层分析