Android Context笔记

2016-05-19  本文已影响0人  进哥哥Jiang

【转载】http://www.crazyjiang.cn/2016/09/25/android-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

Context个数 = 1(Application) + Activity个数 + Service个数

Context应用场景

getApplication和getApplicationContext区别

read source code

上一篇 下一篇

猜你喜欢

热点阅读