天天看點

《Android應用開發攻略》——導讀

《Android應用開發攻略》——導讀

前言

對于蜂窩技術和移動計算來說,android是“開放源碼的革命”,至少是革命的一部分。從已經不存在的openmoko freerunner到qt embedded、moblin、 limo、 debian mobile,以及maemo和最近剛剛開放源碼的symbian os、剛剛消失的hp webos,人們對于提供開放源碼的蜂窩技術已經做出了許多的嘗試。我們也不要忘記閉源系統的忠實擁趸:blackberry os、apple iphone和microsoft windows mobile(這些系統都有開發人員工具箱,但是它們的os都不是開放源碼的,并且常常有其他的“單擊合同”(click-wrap)限制)。

但是,正如mike o扗ell曾經說過的,“空談不能預測未來”。android是否能在其他競争者中間占據重要位置?當我們開始組織本書的材料時,我們認為它已經做到了,實踐也證明了:android絕對占據一席之地!本書旨在幫助android開發者社群分享知識,貢獻這些知識的開發人員們将會使追随者們更輕松地進行android的開發工作。

關于android

android是一個移動技術平台,為蜂窩電話、平闆電腦和其他手持或移動裝置(甚至上網本)提供linux作業系統的能力和可移植性,以及标準進階語言和api的可靠性和可移植性。android應用使用eclipse等工具,以java語言編寫,依靠android api編譯并轉換為用于dalvik vm的位元組碼。

是以,android的os家族與openmoko、qt embedded、 meego、ophone、 limo和其他基于linux的蜂窩電話項目相關聯。android還與blackberry和java me手機的程式設計語言,以及java和更廣泛的java企業應用程式相關聯。

android的銷售量已經持續攀升;來自npd的一篇報道稱,2010年第一季度,所有android裝置的銷售量超過了iphone的銷售量,上升到第二位(仍然與blackberry平台有一定差距)。當然,android的銷售量增長部分原因是主要營運商verizon“買一送一”的促銷行動,但是這并不是全部原因

[第1章 入門

<a href="https://yq.aliyun.com/articles/175939">1.2 學習java語言</a>

<a href="https://yq.aliyun.com/articles/175942">1.3 從指令行建立 “hello, world”應用程式</a>

<a href="https://yq.aliyun.com/articles/175948">1.4 在eclipse中建立“hello, world”應用程式</a>

<a href="https://yq.aliyun.com/articles/175953">1.5 在windows上安裝用于android開發的ide</a>

<a href="https://yq.aliyun.com/articles/175954">1.6 了解android生命周期</a>

<a href="https://yq.aliyun.com/articles/175956">1.7 通過adb在模拟器上安裝.apk檔案</a>

<a href="https://yq.aliyun.com/articles/175960">1.8 通過slideme将應用程式安裝到模拟器上</a>

<a href="https://yq.aliyun.com/articles/175964">1.9 共享來自其他eclipse項目的java類</a>

<a href="https://yq.aliyun.com/articles/175966">1.10 引用程式庫實作外部功能</a>

<a href="https://yq.aliyun.com/articles/175973">1.11 使用sdk樣例避免棘手的情況</a>

<a href="https://yq.aliyun.com/articles/175983">1.12 保持android sdk更新</a>

<a href="https://yq.aliyun.com/articles/175991">1.13 從模拟器/android裝置獲得螢幕截圖</a>

<a href="https://yq.aliyun.com/articles/175999">1.14 程式:簡單的countdowntimer示例</a>

<a href="https://yq.aliyun.com/articles/176019">1.15 程式:android os下的小費電腦tipster</a>

[第2章 設計成功的應用程式

<a href="https://yq.aliyun.com/articles/176028">2.2 異常處理</a>

<a href="https://yq.aliyun.com/articles/176034">2.3 作為“單例”通路android應用程式對象</a>

<a href="https://yq.aliyun.com/articles/176037">2.4 在使用者旋轉裝置時儲存資料</a>

<a href="https://yq.aliyun.com/articles/176040">2.5 監控android裝置的電量</a>

<a href="https://yq.aliyun.com/articles/176050">2.6 在android中建立閃屏</a>

<a href="https://yq.aliyun.com/articles/176054">2.7 設計會議/網絡研讨/程式設計馬拉松/機構用的應用程式</a>

<a href="https://yq.aliyun.com/articles/176057">2.8 在android應用中使用google analytics</a>

<a href="https://yq.aliyun.com/articles/176061">2.9 簡單的手電筒應用程式</a>

<a href="https://yq.aliyun.com/articles/176063">2.10 将android手機應用程式改編為平闆電腦應用程式</a>

<a href="https://yq.aliyun.com/articles/176064">2.11 設定首次運作的首選項</a>

<a href="https://yq.aliyun.com/articles/176066">2.12 為顯示格式化時間和日期</a>

<a href="https://yq.aliyun.com/articles/176068">2.13 用keylistener控制輸入</a>

<a href="https://yq.aliyun.com/articles/176071">2.14 備份android應用程式資料</a>

<a href="https://yq.aliyun.com/articles/176075">2.15 用提示代替工具提示</a>

[第3章 測試

<a href="https://yq.aliyun.com/articles/176080">3.2 在android中進行tdd</a>

<a href="https://yq.aliyun.com/articles/176087">3.3 為應用測試設定android虛拟裝置(avd)</a>

<a href="https://yq.aliyun.com/articles/176089">3.4 用基于雲的測試在多種裝置上進行測試</a>

<a href="https://yq.aliyun.com/articles/176094">3.5 測試項目的建立和使用</a>

<a href="https://yq.aliyun.com/articles/176098">3.6 應用程式崩潰排錯</a>

<a href="https://yq.aliyun.com/articles/176100">3.7 用log.d和logcat進行調試</a>

<a href="https://yq.aliyun.com/articles/176103">3.8 用bugsense自動從使用者那裡得到缺陷報告</a>

<a href="https://yq.aliyun.com/articles/176104">3.9 使用本地運作時應用程式日志分析現場錯誤情況</a>

<a href="https://yq.aliyun.com/articles/176106">3.10 為測試重制活動生命周期場景</a>

<a href="https://yq.aliyun.com/articles/176107">3.11 用strictmode保持應用程式靈活性</a>

<a href="https://yq.aliyun.com/articles/176108">3.12 運作monkey程式</a>

<a href="https://yq.aliyun.com/articles/176111">3.13 發送文本消息以及avd之間的通話</a>

繼續閱讀