【正文】
Thread thread = newThread(new Runnable() { Override publicvoid run() { Weathertool tool = newWeathertool()。 } } })。 = newCitydbHelper(context)。 Cursor cursor = (select cityname from city where cityname=?,( new String[]{str} ))。 (delete from city where cityname = ?, new Object[]{str})。 畢業(yè)設(shè)計說明書 (論文 ) 第 26 頁 共 45 頁 while(()){ String cityname = ((cityname))。 具體頁面如圖 55 和圖 56所示: 圖 55 手機(jī)號信息顯示界面 圖 56 手機(jī)號操作界面 畢業(yè)設(shè)計說明書 (論文 ) 第 27 頁 共 45 頁 主要代碼顯示如下: private static final String targetNameSpace = private static final String WSDL = private static final String getMobileCodeInfo = getMobileCodeInfo。 AndroidHttpTransport Transtation = new AndroidHttpTransport(WSDL)。 } 手機(jī)號收藏的實現(xiàn) 在收藏過手機(jī)號后,收藏的列表馬上會顯示該手機(jī)號,此時可以對其管理,點擊菜單可以彈出管理手機(jī)號的菜單,點擊管理號碼,手機(jī)號條目上面會顯示刪除按鈕,點擊刪除按鈕,就會彈出一個確認(rèn)對話框,點擊確認(rèn)就會調(diào)用刪除的 SQL 在 sqlite3 中刪除該手機(jī)號信息。 Message mes = new Message()。 (不收藏 , new () { Override public void onClick(DialogInterface dialog, int which) { // TODO Autogenerated method stub listview = getListView()。 } private void dialogdelete() { builder = new (this)。 } })。 TVprogramAdapte。 } })。 } })。 (mes)。 senditem(service)。 } catch (XmlPullParserException e) { // TODO Autogenerated catch block ()。 (soapObject)。 ()。 SQLiteDatabase db = ()。 returnfalse。 ()。具體頁面如圖 53 和圖 54 所示: 圖 53 城市收藏界面 圖 54 城市收藏界面菜單選項 主要代碼顯示如下: public class CitydbService { private CitydbHelpercitydbhelper。 = 2。 (請稍候!正在初始化天氣數(shù)據(jù)??! )。 (())。 switch () { // case 1 : ()。 } } catch (IOException e) { ()。 (soapObject)。 } } catch (IOException e) { ()。 (soapObject)。 } } catch (IOException e) { // TODO Autogenerated catch block ()。 AndroidHttpTransport Transtation = newAndroidHttpTransport(WSDL)。 private static final String getStockInfo = getStockInfo。 表 410 wordmark 列名 數(shù)據(jù)類型 允許空 說明 id integer N 主鍵,遞增 word varchar(5) Y 單詞 sound varchar(6) Y 讀音 draw varchar(6) Y 筆畫 translation varchar(10) Y 翻譯譯文 sentences varchar(20) Y 例句 suggest varchar(10) Y 建議詞匯 畢業(yè)設(shè)計說明書 (論文 ) 第 18 頁 共 45 頁 第 5 章 系統(tǒng)實現(xiàn) 本章介紹本系統(tǒng)的各個模塊的設(shè)計和實現(xiàn)。 系統(tǒng)和用戶交互時修要直觀的圖形化界面,所以我們需要很多用戶界面類。 安全可靠性原則 本軟件是基于手機(jī)設(shè)備使用的,其安全性與其他的應(yīng)用軟件是一樣的,本軟件不會殘留用戶任何的隱私信息。 操作可行性 軟件采用最主流的 Android 軟件應(yīng)用開發(fā)風(fēng)格,并使用 Android 的原生組件進(jìn)行開發(fā),界面友好 ,簡潔易懂,組建布局具有誘導(dǎo)性,用戶使用極其方便快捷。 // TODO Autogenerated constructor stub } Override public void onCreate(SQLiteDatabase db) { // TODO Autogenerated method stub (CREATE TABLE channel (id integer primary key autoincrement, channelno integer ,channelname varchar(20)))。 Android SDK 常見公共類庫介紹 sqlite3 數(shù)據(jù)庫的使用相關(guān)類庫介紹 本軟件代碼編寫過程中對數(shù)據(jù)庫的操作主要涉及三個工具類,分別是: 1. 。 HTTP 與 RPC 的協(xié)議很相似 ,它簡單、 配置廣泛 ,并且對防火墻比其它協(xié)議更容易發(fā)揮作用。因此,Android SDK 指的既是 Android 專屬的軟件開發(fā)工具包。近期還有包括 Oracle 在內(nèi)的許多大公司也紛紛加入了該項目,并宣稱 Eclipse 將來能成為可進(jìn)行任何語言開發(fā)的IDE 集大成者,使用者只需下載各種語言的插件即可。 Eclipse 是著名的跨平臺的自由 集成開發(fā)環(huán)境 ( IDE)。 4. 搜集軟件制作素材。 課題的目的與意義 本軟件旨在為廣大的移動平臺用戶特別是 Android用戶提供一個最快捷的日常信息獲取平臺,其中包括:天氣,手機(jī)號查詢,電視節(jié)目預(yù)告,中英翻譯這樣的一個軟件集成平臺。 關(guān)鍵詞 : Android 操作系統(tǒng),個人助手,智能手機(jī), Android SDK 畢業(yè)設(shè)計說明書 (論文 ) 2 Design and realization of personal assistant system using Android Abstract: With the rise of smart phones, Android is gradually being the largest market share of mobile platform operating system, and weled by the general public. Therefore, it is necessary to develop some software systems to meet the daily use of the user friendly, and to contribute to such a new platform. According to the actual situation of the daily use of the smart phone users, this design contains the function and framework of this software system by the demand for everyday use. Using structured system in software engineering, it employs a standard software design process from feasibility studies, requirements analysis, system design to implement and test for developing the personal assistant system. This software system implements the weather forecast, mobile phone number assistant, notice of television programs and translation assistant on the Android operating system. In addition, the user can use the designed favorites and word list which can collect the information of the weather forecast, mobile phone and notice of television programs and record the word for the use of the user friendly. Keywords: Android operating system, personal assistant, smart phones, Android SDK畢業(yè)設(shè)計說明書 (論文 ) I 目 錄 前言 ......................................................... 1 第 1 章 概述 ................................................. 2 智能手機(jī)系統(tǒng)開發(fā)背景 ............................................. 2 課題的目的與意義 ................................................. 2 本文主要研究內(nèi)容 ................................................. 3 第 2 章 相關(guān)技術(shù)介紹 ......................................... 4 開發(fā)工具及環(huán)境簡介 .............................................. 4 開發(fā)工具 ................................................. 4 開發(fā)環(huán)境 ................................................. 5 開發(fā)技術(shù) ........................................................ 5 利用 SOAP 技術(shù)與網(wǎng)絡(luò)接口交互 ............................... 6 Android SDK 常見公共類庫介紹 ..................................... 6 sqlite3 數(shù)據(jù)庫的使用相關(guān)類庫介紹 ......................... 6 Android 界面 Activity 介紹 ................................ 7 第 3 章 系統(tǒng)需求分析 ......................................... 9 可行性研究 ....................................................... 9 經(jīng)濟(jì)可行性 ............................................... 9 技術(shù)可行性 .........................................