【正文】
e)。 //實例化菜單加載器 mi = new MenuInflater(this)。 ()。 } else { (記住密碼沒有選中 )。 if(getIntent().getBooleanExtra(isfirst, false)){ (this, 您 是 第 一 次 運 行 , 請 點 擊 注 冊 , ).show()。 mit()方法提交數(shù)據(jù)。 list = new ArrayListView()。 validTime = validTime + 5*60*60*1000。 (date_y, str)。 JSONObjectjson=newJSONObject(info).getJSONObject(weatherinfo)。例如:(tagName),但是這樣是要在預先知道文檔結(jié)構(gòu)的情況下使用,無法進行通用的封裝 [11]。這樣對于有限的 Android 內(nèi)存更有效,而且 Android 提供了一種傳統(tǒng)的SAX 使用方法以及一個便捷的 SAX 包裝器。這里外圍設(shè)備可以理解為該 XML文本沒有應(yīng)用其他的文件。如圖 41 所示: 11 如圖 41 項目工程結(jié)構(gòu)圖 XML 和 JSON 詳情 XML 解析 所謂的 XML,就是 eXtensible Markup Language,翻譯成中文就是“可擴展標識語言” ,在國內(nèi)很多人理 解 XML為 html 的簡單擴展,這實際上是一種誤解。當然你可能偶爾勿需文檔說明就能與其他人意見較為一致,但更常見的是出現(xiàn)重復返工這種不可避免的后果,而重新編制代碼的代價遠遠超過重寫一份需求文檔的代價,這些血的教訓正在國內(nèi)的軟件開發(fā)者身上發(fā)生。 在 Eclipse 中。 NOTE:前面四步設(shè)置環(huán)境變量對搭建 Android 開發(fā)環(huán)境不是必須的,可以跳過。就其本身而言,它只是一個框架和一組服務(wù),用于通過插件組件構(gòu)建開發(fā)環(huán)境。 去年 7 月,小米在印度正式推出小米手機戰(zhàn)績斐然,東南亞大多數(shù)國家當前都能看到小米手機的身影,華為以歐州市場為重要突破口主推 Ascend 和榮耀也是今非昔比。同時因為 Android 系統(tǒng)的開放性為 Android 平板電腦的快速發(fā)展奠定了基礎(chǔ),也才能促使其吸引著越來越多的用戶接受和使用。顯著的開放性可以使其擁有更多的開發(fā)者,隨著用戶和應(yīng)用的日益豐富,一個嶄新的平臺也將很快走向成熟。 關(guān)鍵詞 智能手機 Android API 用戶 II Abstract As smartphones is walking into the life of ordinary people step by step, it will bee the main equipment of access to , mobile entertainment application service there will be a very big development space of mobile phone quick query software is one of platform to provide users with convenient and fast query function for the design and implementation of a quick query service provides a better the Android platform is essentially free, so can effectively reduce the cost of software, finally let each user can freely access to information and also contribute to the popularization of mobile phone quick query service. This study analyzes the Android platform system architecture and ponent model and analyzes the important part of the Android API and application of mechanism with the Intent and life the basis of the design and development based on the Android platform mobile phone quick query software in the system friendly interface, convenient operation, good scalability and maintainability。System tested, stable operation, and can satisfy the basic needs of mobile phone users. Keyword smart phone Android API (Application Programming Interface) User III 目 錄 摘 要 ........................................................................................................................... I Abstract ..........................................................................................................................II 第 1 章 緒 論 ................................................................................................................ 1 國內(nèi)外手機系統(tǒng)現(xiàn)狀 ...................................................................................... 1 Android 系統(tǒng)的優(yōu)勢 ......................................................................................... 1 開放性 .................................................................................................... 1 掙脫束縛 ................................................................................................ 1 豐富的硬件 ............................................................................................ 2 開發(fā)商 .................................................................................................... 2 Android 的發(fā)展趨勢 ......................................................................................... 2 國產(chǎn)手機品牌紛紛加速海外布局 ........................................................ 3 本章小結(jié) .......................................................................................................... 3 第 2 章 相關(guān)技術(shù)簡介 .................................................................................................. 4 開發(fā)工具 .......................................................................................................... 4 JDK(Java Development Kit) ................................................................... 4 Android SDK 介紹 ................................................................................. 4 Eclipse 開發(fā)工具介紹 ........................................................................... 4 Android Development Tools( ADT)介紹 ......................................... 4 開發(fā)環(huán)境搭建 .................................................................................................. 5 開發(fā)環(huán)境搭建的步驟 ............................................................................ 5 JDK 安裝 ............................................................................................... 5 Eclipse 安裝 ........................................................................................... 5 Android SDK 安裝 ................................................................................ 6 ADT 安裝 .............................................................................................. 7 創(chuàng)建 AVD .............................................................................................. 7 本章小結(jié) .......................................................................................................... 7 第 3 章 需求分析 .......................................................................................................... 8 開發(fā)背景 .......................................................................................................... 8 開發(fā)需求分析 .................................................................................................. 8 開發(fā)需求分析的作用 ............................................................................ 8 天氣預報需求分析 ................................................................................ 8 本章小結(jié) ..............................................