【正文】
北 京 工 業(yè) 大 學(xué) 畢 業(yè) 設(shè) 計 ( 論 文 )基于 Android 系統(tǒng)的手機防盜摘要近年來,智能手機的功能日趨強大,移動終端應(yīng)用程序?qū)映霾桓F。由于現(xiàn)在人們的工作繁忙,手機的丟失似乎也成為常有的事。與之帶來最讓人煩心的是私人數(shù)據(jù)的丟失及帶來的不安全隱患?;谝陨显颍疚脑O(shè)計了一款手機防盜追蹤軟件。本軟件利用 Android 系統(tǒng)的廣播機制,當(dāng)手機用戶開啟防盜追蹤功能后,本程序?qū)⒑笈_監(jiān)聽手機開機啟動、信號狀態(tài)、短信收發(fā)以及位置的改變,通過監(jiān)聽手機用戶 SIM 卡的 IMSI 碼的改變來判斷手機安全狀態(tài),監(jiān)聽并截獲安全短信內(nèi)容,實現(xiàn)非法用戶的手機號碼向合法用戶預(yù)先設(shè)置的安全號碼發(fā)送特殊信息的功能,告知用戶當(dāng)前手機狀態(tài)和位置信息,并可通過安全短信控制被盜手機鎖屏、銷毀隱私數(shù)據(jù)、發(fā)報警音等功能。最后將設(shè)計完成的軟件進行測試,其所有功能都完美實現(xiàn),真正起到了手機防盜追蹤的作用。關(guān)鍵詞:Android 系統(tǒng) 手機防盜 廣播機制 監(jiān)聽器北 京 工 業(yè) 大 學(xué) 畢 業(yè) 設(shè) 計 ( 論 文 )ABSTRACTIn recent years, the intelligent mobile phone function is powerful, the mobile terminal application emerge in an endless stream. Because now people39。s busy work, the lost mobile phone also seems to be a mon thing. And bring the most disturbing is a private data loss and insecurity hidden trouble. Based on the above reasons, this paper introduces the design of a mobile phone antitheft tracking software. This software uses Android system broadcast mechanism, when the mobile phone users to open antitheft tracking function, the program will monitor the background mobile phone boot, signal condition, send and receive text messages and a change of location, through the monitoring mobile phone user SIM card IMSI code changes to determine mobile phone safety state, monitor and intercepts a secure message content, realize the illegal user the mobile phone number to the legitimate user preset safety numbers to send special message to inform the user of mobile phone function, current status and location information, and through SMS security control of stolen mobile phone lock screen, the destruction of privacy data, send alarm sound and other functions. Finally pleted the design of the software testing, all of its functions are perfect, played a real mobile phone antitheft tracking function.Keywords: Android system DroidRing Broadcasting mechanism Listener北 京 工 業(yè) 大 學(xué) 畢 業(yè) 設(shè) 計 ( 論 文 )目錄1 緒論...................................................................1 應(yīng)用開發(fā)研究背景與意義 .............................................1 國內(nèi)外研究現(xiàn)狀 .....................................................2 國內(nèi)研究狀況....................................................2 國外研究狀況....................................................2 開發(fā)研究內(nèi)容 .......................................................32 手機防盜應(yīng)用開發(fā)的基礎(chǔ).................................................4 Java 基礎(chǔ)...........................................................4 Android 基礎(chǔ)........................................................43 手機防盜應(yīng)用方案的設(shè)計.................................................5 UI 設(shè)計.............................................................5 UI 窗口層 .......................................................6 UI 主層 .........................................................8 UI 功能體驗層 ...................................................8 UI 指令查看層 ...................................................9 UI 信息設(shè)置層 ..................................................10 Function 設(shè)計......................................................11 應(yīng)用初始化.....................................................11 功能選擇.......................................................11 功能體驗.......................................................12 功能查看.......................................................12 功能設(shè)置.......................................................12 Service 設(shè)計.......................................................12 數(shù)據(jù)庫存儲服務(wù).................................................12 監(jiān)聽按鈕事件服務(wù)...............................................13 開機啟動和短信廣播服務(wù).........................................13 GPS 服務(wù) .......................................................14 私人數(shù)據(jù)的管理.................................................144 手機防盜應(yīng)用方案的實施................................................15 UI 的實現(xiàn)..........................................................15 Activity.......................................................15 ListActivity...................................................20 PreferenceActivity.............................................24 Dialog.........................................................26 由 Sever 支持的 Function 實現(xiàn) .......................................27 廣播機制服務(wù)...................................................27 換卡短信通知...................................................30 定位手機.......................................................31北 京 工 業(yè) 大 學(xué) 畢 業(yè) 設(shè) 計 ( 論 文 ) 數(shù)據(jù)銷毀.......................................................32 鎖定手機.......................................................34 發(fā)報警音.......................................................35 數(shù)據(jù)庫存儲應(yīng)用.................................................365 手機防盜應(yīng)用測試......................................................37 防盜應(yīng)用初始化 ....................................................37 手機定位功能測試 ..................................................37 換卡短信通知功能測試 ..............................................38 鎖屏功能測試 ......................................................39 銷毀數(shù)據(jù) ..........................................................40 發(fā)報警音 ..........................................................406 手機防盜應(yīng)用說明......................................................41結(jié) 論 .....................................................................42致謝 .....................................................................43參考文 獻 .................................................................44附錄一 ...................................................................45附錄二 ...................................................................46附錄三 ...................................................................53北 京 工 業(yè) 大 學(xué) 畢 業(yè) 設(shè) 計 ( 論 文 )11 緒論 應(yīng)用開發(fā)研究背景與意義隨著 3G 技術(shù)的不斷發(fā)展,手機移動應(yīng)用開發(fā)成為目前熱門的技術(shù)之一。種類繁多的手機應(yīng)用以及先進的硬件,使得手機已經(jīng)不完全是用來通話的工具了,它巧妙的融合了 PDA(Personal Digital Assistant,掌上電腦)、數(shù)碼相機以及 MP3 等諸多功能,一機多能且不斷向?qū)I(yè)化邁進是現(xiàn)在手機的發(fā)展方向 [1]。手機功能的增多以及不斷完善,自然價格也高低不一,好的手機可以賣到筆記本的價格。關(guān)于手機我們能想