Skip to content
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

Open
lchad opened this issue Mar 10, 2015 · 4 comments
Open

[问答]谈谈你对Android中Context的理解? #16

lchad opened this issue Mar 10, 2015 · 4 comments

Comments

@lchad
Copy link

lchad commented Mar 10, 2015

No description provided.

@Trinea Trinea changed the title 问答:谈谈你对Android中Context的理解? [问答]问答:谈谈你对Android中Context的理解? Mar 10, 2015
@Trinea Trinea changed the title [问答]问答:谈谈你对Android中Context的理解? [问答]谈谈你对Android中Context的理解? Mar 10, 2015
@shanksleo
Copy link

Context:包含上下文信息(外部值) 的一个参数. Android 中的 Context 分三种,Application Context ,Activity Context ,Service Context.

@alivebao
Copy link

它描述的是一个应用程序环境的信息,通过它我们可以获取应用程序的资源和类,也包括一些应用级别操作,例如:启动一个Activity,发送广播,接受Intent信息等

@zhdh2008
Copy link

http://blog.csdn.net/qinjuning/article/details/7310620
可参考下这篇博文或Context的官方文档

@imolable
Copy link

Android Application和Activity,Service的关系是什么?当程序退出时,application退出,但是Service任然存在。当Application销毁时,用广播开启service时,Application,并不会新建。当Application销毁时,用广播开启Activity时,Application就会新建。Service并不会依赖Application吗?Activity一定会依赖Application吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants