我是新来的Android。有人可以解释我Context类/对象的概念。这是什么?它会被用来做什么?为什么Context类?
解决方案在编程Android应用程序,你将几乎不需要直接(不可能使用上下文类,因为 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.