Is each activity in android having its own context? What is the scenario with multiple activities in single application

╄→尐↘猪︶ㄣ 提交于 2019-12-10 10:04:47

问题


I was reading this link to understand context in the android. I still have one question that does each activity have its own context?. Please consider i am an android learner in beginning level.


回答1:


I still have one question that does each activity have its own context?

Each Activity is its own Context. Activity is a Java class; it inherits from Context:



来源:https://stackoverflow.com/questions/34269458/is-each-activity-in-android-having-its-own-context-what-is-the-scenario-with-mu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!