您的位置:首页 > 移动开发 > Android开发

android四个组件知识总结

2015-07-29 21:19 337 查看


ContentProvider

extends Object

implements ComponentCallbacks2


BroadcastReceiver

extends Object


Service

extends ContextWrapper

implements ComponentCallbacks2

java.lang.Object
android.content.Context
android.content.ContextWrapper
android.app.Service


Activity

extends ContextThemeWrapper

implements LayoutInflater.Factory2 Window.Callback KeyEvent.Callback View.OnCreateContextMenuListenerComponentCallbacks2

java.lang.Object
android.content.Context
android.content.ContextWrapper
android.view.ContextThemeWrapper
android.app.Activity


Activity和Service都是Context的间接子类,所以都有Context的startActivity和startService方法

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: