android中的每个活动都有自己的上下文吗?在单个应用程序中具有多个活动的方案是什么 [英] Is each activity in android having its own context? What is the scenario with multiple activities in single application

查看:49
本文介绍了android中的每个活动都有自己的上下文吗?在单个应用程序中具有多个活动的方案是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读链接以了解android中的上下文.我还有一个问题,每个活动是否都有自己的环境?请考虑我是入门级的android学习者.

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.

推荐答案

我还有一个问题,每个活动是否都有自己的背景?

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

每个Activity 自己的Context. Activity是Java类;它是从Context继承的:

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

这篇关于android中的每个活动都有自己的上下文吗?在单个应用程序中具有多个活动的方案是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆