请解释一下我的Andr​​oid Context类 [英] Please explain me Context class in Android

查看:168
本文介绍了请解释一下我的Andr​​oid Context类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的Andr​​oid。有人可以解释我Context类/对象的概念。这是什么?它会被用来做什么?为什么Context类?


解决方案

在编程Android应用程序,你将几乎不需要直接(不可能使用上下文类,因为上下文是抽象的),但你将需要从中获得像活动服务等子类
你可能想看看这些了。<​​/ P>

I'm new to Android. Can someone explain me the concept of Context class/Object. What it is? What it will be used for? Why Context class?

解决方案

In programming Android applications, you will hardly ever need to use the Context class directly (not possible at all since Context is abstract), but you will need the child classes that derive from it like Activity, Service etc. You might want to look these up.

这篇关于请解释一下我的Andr​​oid Context类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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