android中上下文Context的意义
2015-09-19 23:55
337 查看
在安卓开发中经常用到Context这个类,源码解释如下—上下文是一个可以获取应用环境的接口,通过Context可以获取到项目中的工作属性等等
/** * 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. */ public abstract class Context { /** * File creation mode: the default mode, where the created file can only * be accessed by the calling application (or all applications sharing the * same user ID). * @see #MODE_WORLD_READABLE * @see #MODE_WORLD_WRITEABLE */
相关文章推荐
- javascript prototype,executing,context,closure
- android基础教程之context使用详解
- Python的Django框架中的Context使用
- 详解Django框架中用context来解析模板的方法
- 在Django的通用视图中处理Context的方法
- 在Django框架中编写Context处理器的方法
- 如何找回Notepad++的右键菜单
- Context与Application Context
- spring中context:property-placeholder/元素
- android application context 小结
- this 和this.getApplicationContext的区别
- tomcat的Context配置
- 如何在非Activity类中调用getContentResolver()方法
- TextKit学习(四)通过boundingRectWithSize:options:attributes:context:计算文本尺寸
- android学习—context 和 getApplicationContext()
- 也谈Android中的Context(1)
- Java Web 监听器详解
- Context
- Unity3d中奇怪的编译错误
- Android学习之Context