android activity,intent,service是什么关系?
展开全部
public class
Activity
extends ContextThemeWrapper
implements ComponentCallbacks KeyEvent.Callback LayoutInflater.Factory2 View.OnCreateContextMenuListener Window.Callback
An activity is a single, focused thing that the user can do. Almost all activities interact with the user, so the Activity class takes care of creating a window for you in which you can place your UI with setContentView(View). While activities are often presented to the user as full-screen windows, they can also be used in other ways: as floating windows (via a theme with windowIsFloating set) or embedded inside of another activity (using ActivityGroup).
翻译完上面这段你就知道了什么是activity了
public class
Intent
extends Object
implements Parcelable Cloneable
An intent is an abstract description of an operation to be performed.
public abstract class
Service
extends ContextWrapper
implements ComponentCallbacks
A Service is an application component representing either an application's desire to perform a longer-running operation while not interacting with the user or to supply functionality for other applications to use.
Activity
extends ContextThemeWrapper
implements ComponentCallbacks KeyEvent.Callback LayoutInflater.Factory2 View.OnCreateContextMenuListener Window.Callback
An activity is a single, focused thing that the user can do. Almost all activities interact with the user, so the Activity class takes care of creating a window for you in which you can place your UI with setContentView(View). While activities are often presented to the user as full-screen windows, they can also be used in other ways: as floating windows (via a theme with windowIsFloating set) or embedded inside of another activity (using ActivityGroup).
翻译完上面这段你就知道了什么是activity了
public class
Intent
extends Object
implements Parcelable Cloneable
An intent is an abstract description of an operation to be performed.
public abstract class
Service
extends ContextWrapper
implements ComponentCallbacks
A Service is an application component representing either an application's desire to perform a longer-running operation while not interacting with the user or to supply functionality for other applications to use.
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询