官术网_书友最值得收藏!

The application framework

The application framework is the part of the Android platform, which is most familiar to developers. It is delivered as a set of Java libraries and allows you to build user interfaces, interact with device capabilities such as the camera or location services, load and work with various types of application resources, and perform many more useful tasks. Here are some of the major services:

  • ActivityManager: This service is responsible for the activity life cycle, state management, and controls the activity stack. Later, in this chapter, we will learn more about the activity life cycle.
  • WindowManager: This service is responsible for managing the z-order list of screens. Each activity is attached to a window that is used to display the content on the screen, which is controlled by WindowManager.
  • Content providers: This provides an interface to publish and share data between applications.
  • View system: This provides a set of UI controls to build an application user interface.
  • NotificationManage: This service manages application alerts and notifications.
  • Resource Manager: This service provides access to resources, such as user interface layout, strings, color, dimensions, and so on.
  • PackageManager: This holds the metadata of all the installed applications on the device.
  • TelephonyManager: This provides information on the telephone services available on the device, such as status and subscriber information, to the application.
  • LocationManager: This provides access to system location services.

The application layer

At the top of the stack sits the humble application, the component that actually delivers value to the user. Android comes with a set of applications that provide base functionality such as managing contacts, using the phone, checking e-mails, and browsing the web. The key to Android's success is the vast array of third-party applications that can be installed, which allow users to do things, such as stream live sports events, edit a movie captured on the phone, interact with friends through their favorite social media site, and much more.

主站蜘蛛池模板: 芦山县| 汉源县| 常山县| 资溪县| 和顺县| 杭锦后旗| 龙川县| 枣阳市| 通州区| 德安县| 开鲁县| 固镇县| 浦城县| 萝北县| 库车县| 庄浪县| 孝昌县| 海伦市| 南岸区| 西藏| 普安县| 苏尼特右旗| 西乌珠穆沁旗| 同德县| 沁源县| 光泽县| 乐至县| 茌平县| 新昌县| 祁阳县| 揭西县| 蒙山县| 马关县| 西昌市| 涿鹿县| 巨鹿县| 保亭| 沙雅县| 溆浦县| 洛宁县| 德昌县|