【正文】
北 京 工 業(yè) 大 學(xué) 畢 業(yè) 設(shè) 計(jì) ( 論 文 )基于 Android 系統(tǒng)的手機(jī)防盜摘要近年來,智能手機(jī)的功能日趨強(qiáng)大,移動(dòng)終端應(yīng)用程序?qū)映霾桓F。由于現(xiàn)在人們的工作繁忙,手機(jī)的丟失似乎也成為常有的事。與之帶來最讓人煩心的是私人數(shù)據(jù)的丟失及帶來的不安全隱患?;谝陨显颍疚脑O(shè)計(jì)了一款手機(jī)防盜追蹤軟件。本軟件利用 Android 系統(tǒng)的廣播機(jī)制,當(dāng)手機(jī)用戶開啟防盜追蹤功能后,本程序?qū)⒑笈_(tái)監(jiān)聽手機(jī)開機(jī)啟動(dòng)、信號(hào)狀態(tài)、短信收發(fā)以及位置的改變,通過監(jiān)聽手機(jī)用戶 SIM 卡的 IMSI 碼的改變來判斷手機(jī)安全狀態(tài),監(jiān)聽并截獲安全短信內(nèi)容,實(shí)現(xiàn)非法用戶的手機(jī)號(hào)碼向合法用戶預(yù)先設(shè)置的安全號(hào)碼發(fā)送特殊信息的功能,告知用戶當(dāng)前手機(jī)狀態(tài)和位置信息,并可通過安全短信控制被盜手機(jī)鎖屏、銷毀隱私數(shù)據(jù)、發(fā)報(bào)警音等功能。最后將設(shè)計(jì)完成的軟件進(jìn)行測(cè)試,其所有功能都完美實(shí)現(xiàn),真正起到了手機(jī)防盜追蹤的作用。關(guān)鍵詞:Android 系統(tǒng) 手機(jī)防盜 廣播機(jī)制 監(jiān)聽器北 京 工 業(yè) 大 學(xué) 畢 業(yè) 設(shè) 計(jì) ( 論 文 )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è) 計(jì) ( 論 文 )目錄1 緒論...................................................................1 應(yīng)用開發(fā)研究背景與意義 .............................................1 國內(nèi)外研究現(xiàn)狀 .....................................................2 國內(nèi)研究狀況....................................................2 國外研究狀況....................................................2 開發(fā)研究內(nèi)容 .......................................................32 手機(jī)防盜應(yīng)用開發(fā)的基礎(chǔ).................................................4 Java 基礎(chǔ)...........................................................4 Android 基礎(chǔ)........................................................43 手機(jī)防盜應(yīng)用方案的設(shè)計(jì).................................................5 UI 設(shè)計(jì).............................................................5 UI 窗口層 .......................................................6 UI 主層 .........................................................8 UI 功能體驗(yàn)層 ...................................................8 UI 指令查看層 ...................................................9 UI 信息設(shè)置層 ..................................................10 Function 設(shè)計(jì)......................................................11 應(yīng)用初始化.....................................................11 功能選擇.......................................................11 功能體驗(yàn).......................................................12 功能查看.......................................................12 功能設(shè)置.......................................................12 Service 設(shè)計(jì).......................................................12 數(shù)據(jù)庫存儲(chǔ)服務(wù).................................................12 監(jiān)聽按鈕事件服務(wù)...............................................13 開機(jī)啟動(dòng)和短信廣播服務(wù).........................................13 GPS 服務(wù) .......................................................14 私人數(shù)據(jù)的管理.................................................144 手機(jī)防盜應(yīng)用方案的實(shí)施................................................15 UI 的實(shí)現(xiàn)..........................................................15 Activity.......................................................15 ListActivity...................................................20 PreferenceActivity.............................................24 Dialog.........................................................26 由 Sever 支持的 Function 實(shí)現(xiàn) .......................................27 廣播機(jī)制服務(wù)...................................................27 換卡短信通知...................................................30 定位手機(jī).......................................................31北 京 工 業(yè) 大 學(xué) 畢 業(yè) 設(shè) 計(jì) ( 論 文 ) 數(shù)據(jù)銷毀.......................................................32 鎖定手機(jī).......................................................34 發(fā)報(bào)警音.......................................................35 數(shù)據(jù)庫存儲(chǔ)應(yīng)用.................................................365 手機(jī)防盜應(yīng)用測(cè)試......................................................37 防盜應(yīng)用初始化 ....................................................37 手機(jī)定位功能測(cè)試 ..................................................37 換卡短信通知功能測(cè)試 ..............................................38 鎖屏功能測(cè)試 ......................................................39 銷毀數(shù)據(jù) ..........................................................40 發(fā)報(bào)警音 ..........................................................406 手機(jī)防盜應(yīng)用說明......................................................41結(jié) 論 .....................................................................42致謝 .....................................................................43參考文 獻(xiàn) .................................................................44附錄一 ...................................................................45附錄二 ...................................................................46附錄三 ...................................................................53北 京 工 業(yè) 大 學(xué) 畢 業(yè) 設(shè) 計(jì) ( 論 文 )11 緒論 應(yīng)用開發(fā)研究背景與意義隨著 3G 技術(shù)的不斷發(fā)展,手機(jī)移動(dòng)應(yīng)用開發(fā)成為目前熱門的技術(shù)之一。種類繁多的手機(jī)應(yīng)用以及先進(jìn)的硬件,使得手機(jī)已經(jīng)不完全是用來通話的工具了,它巧妙的融合了 PDA(Personal Digital Assistant,掌上電腦)、數(shù)碼相機(jī)以及 MP3 等諸多功能,一機(jī)多能且不斷向?qū)I(yè)化邁進(jìn)是現(xiàn)在手機(jī)的發(fā)展方向 [1]。手機(jī)功能的增多以及不斷完善,自然價(jià)格也高低不一,好的手機(jī)可以賣到筆記本的價(jià)格。關(guān)于手機(jī)我們能想