An application in Android is defined by the contents of its manifest
在android里,一个应用程序被明确定义在清单目录里.
An application in Android is defined by the contents of its manifest. Each
Android application declares all its activities, entry points, communication layers, permissions, and intents throughAndroidManifest.xml. Four basic building blocks, when combined, comprise a rich Android application:
每个android应用程序通过AndroidManifest.xml声明所有它的活动,进入点,通讯层,许可权和intents[意图].四个基本建立模块,当组合起来,包括一个富的Android应用程序:
Activity: The most basic building block of an Android application
Activity:一个Android应用程序最基本的建立模块
Intent receiver: A reactive object launched to handle a specific task
Intent receiver:使一个反应对象开始处理一个特定的任务.
Service: A background process with no user interface
Service:没有用户界面的一个后台进程
Content provider: A basic superclass framework for handling and storing data
Content provider:一个基本超类框架用于处理和收集数据
In this chapter, I’ll break down each specific piece with a concrete
functional example. First up is the activity, the core building block of a
stand-alone Android application.
在这一章里,我将一个具体的功能例子分解成每一个特定部分.首先提到的是activity,一个独立的Android应用程序核心组成模块.
Getting Active
All Android mobile applications, at least in the traditional sense, will
revolve around an activity.
所有Android手机应用程序,至少从传统上的感觉,将围绕着一个activity.
If you’ve had any experience with other mobile platforms, Android’s activity is quite similar to BREW’s applet or Java ME’s midlet. There are, however, a few very important differences.
如果你已经有其它平台上的这方面任何的经验,Android的activity是十分相拟于BREW’s applet或者JAVA ME’s midlet.然而,有几个非常重要的差别.