Android Context介绍.docxVIP

  • 6
  • 0
  • 约7.35千字
  • 约 8页
  • 2017-01-10 发布于天津
  • 举报
Context介绍1 Context是什么context是我们应用开发中是最熟悉的陌生朋友了,说它熟悉,是因为我们在开发中时刻在和它打交道,例如:Service、BroadcastReceiver、Activity等都会利用到Context的相关方法;说它陌生,是因为我们不懂Context的原理。Context,中文直译为“上下文”,Sdk中有一下说明:Interface to global information about an application environment. This is an abstract class whose implementation is provided by the Android system. It allows access to application-specific resources and classes, as well as up-calls for application-level operations such as launching activities, broadcasting and receiving intents, etc.从上可知以下三点:(1)它描述的是一个应用程序的环境信息,是上下文;(2)该类是一个抽象类,Android系统提供了该类的具体实现类;(3)通过它我们可以获取应用程序的资源和

文档评论(0)

1亿VIP精品文档

相关文档