【正文】
. Therefore, the smart phone applications and the service will have broad prospects for development. The location service system based on the Android as a case study of the system through the Android phone to locate the current location of the user, and map showing the location of the user and nearby restaurants gourmet shops, also generate routes the user to select dining locations. The system is divided into server and client. The server is responsible for managing food and beverage information, such as the release of the latest dining information. In thr map , the phone client can find nearby restaurants cuisine, and you can view the profiles, pictures and other operations of the restaurant food. The location of the restaurant food on the cell phone GPS positioning and display on the map, the system can generate a route map for the user, provide a reference for the consumer. On the phone client user can also view the latest information of Web open interface bound to the latest buy, users can order their favorite products to the mobile phone, so you no longer need to pay postage or other able to enjoy the discount of buy. Keywords: Android LBS VII 目錄 第一章 緒論 ...........................................................................................................1 本課題國內(nèi)外研究動態(tài)及意義 ..............................................................1 課題所研究的內(nèi)容和要解決的問題 .......................................................2 論文構(gòu)成 ...................................................................................................2 第二章 相關技術和基礎知識 ...............................................................................3 Android 開發(fā)介紹 .....................................................................................3 開發(fā)技術 ...................................................................................5 CSS 技術 ...................................................................................................5 第三章 系統(tǒng)的需求分析和總體設計 ...................................................................7 系統(tǒng)設計模式 ..........................................................................................7 需求分析和總體設計 ..............................................................................7 數(shù)據(jù)庫設計 ............................................................................................10 第四章 系統(tǒng)詳細設計和實現(xiàn) .............................................................................14 系統(tǒng)架構(gòu) ................................................................................................14 公共方法的創(chuàng)建 ....................................................................................15 存儲過程的創(chuàng)建 ....................................................................................18 系統(tǒng)運行的總流程圖 .............................................................................19 系統(tǒng)界面的創(chuàng)建 .....................................................................................22 本章小結(jié) ................................................................................................37 第五章 結(jié)束語 .....................................................................................................38 系統(tǒng)總結(jié) ................................................................................................38 未來工作展望 ........................................................................................38 參考文獻 ...............................................................................................................39 附錄 .......................................................................................................................40 致 謝 ...................................................................................................................41 1 第一章 緒論 Android 是一種以 Linux 為基礎的開放源代碼操作系統(tǒng),主要使用于便攜設備。 本文就在分析討論 Android 手機軟件開發(fā)技術原理的基礎上,開發(fā)出能為用戶提供更好的基于 Android 平臺的餐飲位置服務系統(tǒng) [1]。 課題所研究的內(nèi)容和要解決的問題 本論文主要研究的重點是 Android 手機的開發(fā),研究內(nèi)容有: 第一, 手機定位用戶位置,并在地圖上顯示用戶當前位置和附近所有的餐館美食店鋪。 第三章是系統(tǒng)的總體設計:主要介紹系統(tǒng)整體的開發(fā)思想與系統(tǒng)的需求分析,以及數(shù)據(jù)庫的設計。 影響應用生命周期的主要因素包括:該進程對于用戶的重要性,以及當前系統(tǒng)中還剩多少可用內(nèi)存。與 iPhone 相似, Android 采用 WebKit 瀏覽器引擎,具備觸摸屏、高級圖形顯示和上網(wǎng)功能,用戶能夠在手機上查看電子郵件、搜索網(wǎng)址和觀看視頻節(jié)目等,比 iPhone 等其他手機更強調(diào)搜索功能,界面更強大,可以說是一種融入全部 Web 應用的單一平臺。這些僅是 強大化軟件支持的一小部分。 CSS 也是目前 Web 開發(fā)中最為成熟和可靠的表現(xiàn)技術。如接受客戶端的請求,并返回相 應的數(shù)據(jù)。數(shù)據(jù)庫設計是本系統(tǒng)開發(fā)和建設的重要組成部分。數(shù)據(jù)庫負責存儲店鋪信息和管理員數(shù)據(jù),管理員可以數(shù)據(jù)庫的數(shù)據(jù)進行維護。 第四, pr_mall_code_select_all:店鋪代碼檢索。 //刪除店鋪 public string pr_mall_delete ( int mall_ID ){... } //添加店鋪 public string pr_mall_insert ( int app_user_ID , int type_ID , int zip_ID , String name , String address , String tel , float cpi , String photo_path , String photo_path_small) 19 系統(tǒng)運行的總流程圖 服務端的總體流程圖 服務端的總體運行的描述是,管理員通過登錄頁面登錄服務端的后臺管理系統(tǒng),管理員必須正確輸入用戶名、密碼和驗證碼才能登錄后臺管理系統(tǒng)。分享的內(nèi)容包括:店鋪名、地址、電話、簡介和圖片。當管理員輸入登錄信息登錄以后,進行如下驗證: 第一,每個輸入框的非空驗證 第二,用戶名驗證 第三,密碼驗證 第四,驗證碼驗證 在密碼驗證過程 中,輸入的密碼首先進 行 MD5 加密,然后在與數(shù)據(jù)庫中已經(jīng)加密過的密碼進行比較,當正確時才給予登錄。 } string username = ()。 if ( == 0) { = 。請您必須輸入正確的驗證碼! 39。如果要查看某一商鋪的詳細信息,可以點擊 “更多 ”按鈕,如圖 47 所示: 圖 47 查看店鋪頁面 該頁面使用了一個 GridView 控件,并調(diào)用了存儲過程 pr_mall_select_all獲取了店鋪表的完整信息,其中使用到了多個表, SQL 語句為: SELECT [mall_ID] , , as 39。同時還要選擇相應的圖片和給商 鋪定位,如圖 49 所示: 圖 49添加商鋪頁面 28 修改店鋪頁面的設計 修改店鋪信息需要向數(shù)據(jù)庫提交一個表單,以便于數(shù)據(jù)的更新,所提交的表單如圖 410所示: 圖 410 修改店鋪頁面 刪除店鋪頁面的設計 商鋪信息顯示出來后,用戶可以 對賬戶進行刪除操作。 private String name。 private int toast_score 。} public String getName() { return name 。} public String getTel() { return tel。 int eventType = ()。 ( ((1))。} break。在視圖層的設計中,采用系 統(tǒng)截圖與文字相結(jié)合的方式,敘述了各個視圖的作用和各個功能模塊之間的關系。在本次的畢業(yè)設計過程中使用了 java 開發(fā)技術、 開發(fā)技術、 sql2020 數(shù)據(jù)庫、 C以及JavaScript 開發(fā)技術。本系統(tǒng)只收集了南寧部分的商鋪信息,但是今后會增大信息的容量和上添加全國各個地區(qū)的 支持。 Java 語言首先便假定了我們只希望進行面向?qū)ο蟮某绦蛟O計?,F(xiàn)在我的畢業(yè)設計得以按時