Android.Essentials[精要]

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.

如果你已經有其它平臺上的這方面任何的經驗,Androidactivity是十分相擬於BREW’s applet或者JAVA ME’s midlet.然而,有幾個非常重要的差別.

發佈了10 篇原創文章 · 獲贊 2 · 訪問量 4560
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章