Activity:

An Activity is an application component that provides a screen with which users can interact in order to do something, such as dial the phone, take a photo, send an email, or view a map. Each activity is given a window in which to draw its user interface. The window typically fills the screen, but may be smaller than the screen and float on top of other windows.

Services:

AService is an application component that can perform long-running operations in the background and does not provide a user interface. Another application component can start a service and it will continue to run in the background even if the user switches to another application. Additionally, a component can bind to a service to interact with it and even perform interprocess communication (IPC). For example, a service might handle network transactions, play music, perform file I/O, or interact with a content provider, all from the background.

Content Providers:

Content providers manage access to a structured set of data. They encapsulate the data, and provide mechanisms for defining data security. Content providers are the standard interface that connects data in one process with code running in another process.

BroadCast Recevicer:

extends Object

java.lang.Object
android.content.BroadcastReceiver
Known Direct Subclasses

AppWidgetProvider , DeviceAdminReceiver

AppWidgetProvider A convenience class to aid in implementing an AppWidget provider.
DeviceAdminReceiver Base class for implementing a device administration component.

BroadCast Recevicer:接受一种或者多种Intent作触发事件,接受相关消息,做一些简单处理,转换成一条Notification,统一了Android的事件广播模型。可以使用BroadcastReceiver来让应用对外一个外部的事件作出响应。Broadcast Receiver通过NotificationManager来通知用户这些事情发生了,BroadcastReceiver注册的有两种方式,一种是可以在AndroidManifest.xml中注册,另一种可以在运行时的代码中使用Context.registerReceiver()进行注册。用户还可以通过Context.sendBroadcast()将他们自己的intent broadcasts广播给其他的应用程序。

更多相关文章

  1. android识别鼠标左键,右键操作
  2. Android(安卓)系统广播动态注册
  3. Android中 广播发送 和 接受 的简单示例
  4. Android(安卓)TelephonyManager类用法
  5. android获取短信state
  6. android 给textview部分文字设置点击事件
  7. Android实现开机自启动Service
  8. Android(安卓)关于 OnScrollListener 事件顺序次数的简要分析
  9. Android拨号器的实现(四中点击事件)

随机推荐

  1. Android(安卓)解析JSON数组
  2. Android事件分发机制概括
  3. androiddd
  4. android 照相以及关于自动生成的图片分辨
  5. Android 如何 隐藏导航栏
  6. android volley 发送 POST 请求
  7. Android Studio使用AIDL时无法找到自定义
  8. Android 编程下背景图片适配工具类
  9. 操作内存卡的常用代码
  10. android dpi DisplayMetrics