-
Notifications
You must be signed in to change notification settings - Fork 536
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[问答]谈谈你对Android中Context的理解? #16
Comments
Context:包含上下文信息(外部值) 的一个参数. Android 中的 Context 分三种,Application Context ,Activity Context ,Service Context. |
它描述的是一个应用程序环境的信息,通过它我们可以获取应用程序的资源和类,也包括一些应用级别操作,例如:启动一个Activity,发送广播,接受Intent信息等 |
http://blog.csdn.net/qinjuning/article/details/7310620 |
Android Application和Activity,Service的关系是什么?当程序退出时,application退出,但是Service任然存在。当Application销毁时,用广播开启service时,Application,并不会新建。当Application销毁时,用广播开启Activity时,Application就会新建。Service并不会依赖Application吗?Activity一定会依赖Application吗? |
No description provided.
The text was updated successfully, but these errors were encountered: