Home
eport #1 – Project Introduction
Contents
1. nn cn noncnn rana cnnnno 28 2 7 5 A O 29 Simple Statements a 29 Compound Statemehls crees e tet eben e n esd anaes teed taansa pe nS 29 Return Statements uo AU AA dti eoe samassa ae 29 2 7 6 White Space BE retreat ENE NA te up ni t 32 Blank EII GS etta a SSA NE E 32 Blank SACS out di nm 32 2 7 7 Naming Conventlons 5 eie eec hern aid KESTI TASAN 33 IH Chapter III Software Requirement Specification cesses 35 3 1 Communication protocol 35 3 2 MHigh ELevel Requitrerrients e rr PR Pe d N S sm aa vo en 35 3 1 1 Domain Mod lisme urnes entente tn gere nn rene 35 Figure 7 MTS Domain Diagrami ZA ne ASSA IN TMN aa 35 Domain Object Description 5 10 a hak s a cheer ee tete AISA N a xa a ora e ava saaneensa 36 3 1 2 User Case Diagram n e tem titt er etes en e PRAT e pue ENEE e 37 Fig re 8 MTS Use Case Dlagrat c cete T eie te redet e ee ete mene se bodite 37 Use case description ss URGERE id 37 3 1 3 Business Process lO Wi iii air eer ede ete a K edente ia pa deese 38 Figure 9 Business Process low ii e tte eese theta ovata tes vids IRA N k a alba 39 Business Flow List uU ete e cie a 39 3 2 Functional Reouirement aaa 40 3 2 1 Function Position Saving ihe tet ett a a a Mahan nt 40 LTE E EE A0 JSON Data Standard oos net bb o be 40 JSON Data Samples aa poete nn ey eee ee da yitt j 40 Detail Process sanira oni a e See 41
2. sms Pid 12 al loga x imei A kP id 12 type vc JP imei A time El type phone number wc time El content ve p ei phone number wc duration El account P id 12 2 imei e SS username ve S S password te iti role 12 rm POSO me name ve email ve x id 12 D imei A phone number wc D imei A latitude 1 uM time El longitude latitude 12 radius 12 longitude 12 comment vc speed 12 create at Fi gt T mimi wid 12 5 imei A time duration a Figure 54 Server Database Table Name No Field Name Data Type Description automatically increase value 1 5 duration t ti ext int auto increment Primary key This is automatically increase value 1 varchar ext i e Start timestamp of sms lt 13 TO o x ei Z o A slat at 3 ix O 06 06 as x jes 134 Page 07 imei varchar Imei of tracked mobile int auto increment Primary key This is automatically increase value 1 Being timestamp position varchar Standard network to get position Speed of moving Being time position Longitude of position 2 Name of danger area danger are 03 latitude Latitude of danger area a latitude Latitude of position Longitude of danger area Imei of tracked mobile Radius of danger area parameter Phone number of supervisor 03 Time to update data Comment of danger area Imei of tracked mobile Imei of tracked mobile p Created time
3. You enter your username to username field giangvh007 zxq user Password giang156 Post 21 After that you click Quickconnect ttt RI dirki e Step 2 Transfer Web folder to file manager of zymic by FileZilla o You choose web folder at local site field for example with following image 165 Page o Pull Web folder to next table after that you can see result a TT Asia uva Host Fdename D ki zen C pt p 12 14 2012 83618 k Business Cap tip 1214 2012 82618 Commen Cap tip 12 14 2012 8 36 18 sendMarkersConfigToMo h Database Cap t p nna __ sendParametesConfisTo p wore intefa ip t p showttstor php proyect 207 T pPRO updateAccount php elected 1 directory Selected 1 directory Server Local file Direction Remote file Sce Prionty Status 6 1 1 3 Setting Up the Environment at Client Side The system is accessed via web browsers The client machine should be installed with one of the following browsers Firefox 11 0 and higher Chrome and Internet Explorer 7 0 and higher 6 1 2 Application 6 1 2 1 Build and Get apk File Summary Description Trace Steps Screen 1 Eclipse SDK e Step 1 Select File menu item Screen 2 Eclipse SDK e Step 2 Select Import menu item Screen 3 Import e Step 3 Double click File System tree item 166 Page Screen 4 Import e Step 4 Click Browse button
4. 05 tableDangerArea Sting 0 06 table Parameters Sting 07 tablePosition Sting S _08 tableSms Stig 09 username Sting Method 4 3 Sequence Diagram Table 94 Phpsglajax dbinfo 4 3 1 Mobile 4 3 1 1 SMS e 40 6 042 v oo e e ooo Intent BootUpReceiver SMSReceiver SMSSentService EnableConnectionService GetParametersConfig GetMarkersConfig SMSSentObserver JSONParser ConfigBean SMSBeen SMSDataScurceConfigDataSourceDataBaseMansger new SMS H i i i H H H H SMSSentObserveriHandleri getapplicationContext smsSource Figure 43 SMS Seguence Diagram 119 Page Method Name Description onReceive Context context Description When receiving new sms call Intent intent function SMSReceiver onReceive context inte nt Parameter context intent Return N A 02 onStart Intent intent int startld Description If received sms is configuration sms call function EnableConnectionService onStart intent start ed to automatically enable network and hide this sms Parameter intent 120startld Return N A O3 Enable 3G amp wifi Description Automatically turned on 3G amp wifi Parameter N A Return N A 04 dolnBackground String params Description get configuration parameters list of dangerous positions from server Parameter params Return
5. Select a directory to import from FU Ban l m vi c A Thuvien gt JB TungBach aj M y t nh You should choose Folder x dr cucos cy track from DISK d cx Pia Cuc b D Ga Bia Cuc b E v 3 DVD RW F Ga Mang gt M 132 gt jo 12345 gt Jo Android Phone usb driver gt de Cap mei p de cm b Ju demo cz scan phone Now we just go to my folder phonetrack on my computer I m C p TungBach Tao C p M i Had Case Step 5 Select pia Cuc b C tree item Screen 6 Import from directory 170 Page r Import from directory Select a directory to import from 4 j M y t nh 4 EI Dia Cuc b C de abisoft Ji CFLog de InstallC112 Intel de Lyrics Ju Ngu i dung J PerfLogs Program Files di strawberry de Temp p UserData J Windows e T p Chuong trinh 86 li C p TungBach Tao C p M i Step 6 Click Position button Screen 7 Import from directory Import from directory N Select a directory to import from X Lyrics LD Ngu i d ng de PerfLogs de Program Files de strawberry I de Temp Ji T p Chuong trinh 86 de UserData J Windows Ga Dia Cuc b D cx D a Cuc b E 3 DVD RW FJ Ki Mang di 132 de 12345 E een m C p TungBach Tao C
6. 0 S SMSDataSource Description 01 onStart Intent intent intent startld int startld c onBind Intent intent Table 53 SMSSentService 4 2 1 2 2 5 MobileTrackService SMSSentService Attribut e No Name Type Description 01 mlisteners st 02 mNetwork NetworkState Handlers and Receivers BroadcastReceiver for phone and network state 03 mNetworkLocation Location _04 mPhoneStateListener PhoneStatelistener 05 mPreflistener Preferencelistener _06 mTelephonyManager TelephonyManager 07 mTrackerData TrackDataHelper 90 Page Method Name Return Parameter Description Type doDebugLogging T F getDistanceFromNetwork float location Determine Location location the current distance from given location getLocationManager Location Manager getPreferences Shared Preferences initLocationListeners 06 onbindinientniem 181 11 07 onCellLocationChanged location CellLocation location this service 09 onSignalStrengthsChanged signalStrength SignalStrength signalStrength 10 onStart Intent intent int Intent startld startld 11 stopListeners De registers all location listeners closes persistent storage trackGPS EE qu VE 13 trackNetwork T F Table 54 MobileTrackService 4 2 1 2 2 6 LocationTrackingListener com android mts mbtrack e Class Lo
7. Figure 22 Register Screen 61 Page Registration successful Figure 23 Registration Confirm Screen Detail Process Function Specification Function No BF5A1 Function Version Function Name Register Author MTS Date 10 10 2012 System allows user create an account to login system and use tracking service Description Inputs End users input User name Password Confirm password IMEI Phone and Email into Register form Source User name Password Confirm password IMEI Phone and Email from text fields Validated Item Reguired Validate Messages IMEI 15 digits T ithi u 15 ki tw 62 Page Username From 6 to 12 characters T i TT 6 ki tu Cannot input special T i da 12 ki ty characters Password Display type T6i thi u 6 ki tw From 6 to 12 characters T ida 12 ki te Cannot input special characters Confirm Egual to password DG li u nhap lai password kh ng hop l Mobile LT NN 2 Only number D li u l s Email Email format Dia chi email kh ng hop l Outputs An account is created if validated Show successful messages Destination Register Screen Requires Register screen is loaded Pre condition End users has not an account Post condition An account is created on database Successful message is displayed User c
8. SMS logs Content phone numbers type time Test all hyperlinks zoom on map Show positions on map name time duration Switch between SMS Call log tab Change Date dropdown list Danger Area Screen O O Check create a new marker point Check show marker point 136 Page o Check show marker point list o Check updates information of marker point o Test all hyperlinks zoom on map e Profile Screen o Check validation of all fields o Check updates information IMEI number phone email time o Check buttons update cancel e Register Screen o Check validation of all fields o Button register e Login Screen o Check validation of all fields o Test all hyperlink create an account forgot password o Button sign in e Teston multiple browsers e Performance test o Page loading on each click o How many people can access at the same time 5 1 2 Feature not to be tested e Stable of application after device received active message 3G and GPS are turn off Try some special ways to remove application on device just normal 5 2 Test Strategy 5 2 1 Test Types 5 2 1 1 Function Testing Function testing of the target of test should focus on any reguirements for test that can be traced directly to use cases or business functions and business rules The goals of 137 Page these tests are to verify proper data acceptance processing and retrieval and the appropriate implementation of the busi
9. Figure 50 Update Sequence Diagram Method Name Description Link to update account Description Click on Update Account tab go to this page page Parameter N A Return N A Update account Description Update information includes user name 129 Page information imei email mobile Parameter N A Return N A 03 Connect to database Description Connect database Parameter N A Return N A 04 Update password Description If user changed password update to database Parameter N A Return N A Table 103 Update Seguence Description 4 3 2 5 Show History O O O O O End User showHistory phpsglajax genxmlAllLocstion genSms genCallLog phpsalajax genxml3 phpsglajax dbinfo i H H H i i link to show history page 4 D display location hist connect to DB i return location xml object H n display sms 1 H history i connect to DB i i i return sms xml object H display call log i p i history H connect to DB H return call log xml object H display Freeze Point i connect to DB i return Freeze Point xml object i Figure 51 Show History Sequence Diagram Method Name Description 01 Link to show history Description Ways to display history page page After login successfully go to this page Click on History tab on menu tab Parameter N A Return N A 02 Display location history Description Display position info
10. Java byte code java class Frequently used file names include File Type Use GNUmakefile The preferred name for makefiles We use gnumake to build our software README The preferred name for the file that summarizes the contents of a particular directory 25 Page 2 7 2 File Organization Java source files have the following ordering Beginning comments All source files should begin with a c style comment that lists the programmer s the date a copyright notice and also a brief description of the purpose of the program For example p Classname Version info Copyright notice Package and Import statements The first non comment line of most Java source files is a package statement After that import statements can follow For example packagejava awt importjava awt peer CanvasPeer 2 7 3 Indentation Four spaces should be used as the unit of indentation The exact construction of the indentation spaces vs tabs is unspecified Tabs must be set exactly every 8 spaces not 4 e Line Length Avoid lines longer than 80 characters since they re not handled well by many terminals and tools Note Examples for use in documentation should have a shorter line length generally no more than 70 characters e Wrapping Lines When an expression wills not fit on a single line break it according to these general principles v Break after a comma v Break before an
11. A1 SP2 After receive sms with defined syntax MTS android application execute following steps Hide configuration sms with phone user Auto connect network lt Send request to get new configuration parameters to server A1 SP3 Save data which recently get from server to database of tracked phone Table 24 Update Configuration Parameter Process Description 3 2 6 Function Display statistic information In this function system will display all tracking information for user Displayed information is divided by date includes e Position history e SMS history e Calllogs history lt Refer data sample table in Appendix for more detail gt Position history screen 56 Page e I 3 Y E 8 wien map seins LIST OF LOCATION ST OF DANGER AREA Nm e gt ew a amp iss Start 2012 12 04 15 1638 v se End 2012 12 04 152419 Mary Mon vn Ow m TIT 8 Thi De R x dido tance 0 114 km 2012 12 04 15 19 41 400 outgoing 091286 27 2 2012 12 04 18 02 55 Do choi 2012 12 04 18 01 56 401 incoming 784912862752 2012 12 04 18 03 33 um 2012 12 04 18 05 46 Figure 16 Position History Screen SMS history screen SMS 2012 12 07 ID Type Phone Number Time Content 2012 495 incoming 84945709689 12 07 Hay qua 01 56 42 2012 496 incoming 849457096389 12 07 mtjg atg jatjg ajg ajg atpg akgajgajpo ajtgajajamaja5m 01 57 42 2012 497 incoming 18001091 12 07 10 07
12. Click on Root explorer Icon and choose on parent folder Choose system folder Aounted a r o Mount raw BE system vendor ueventd goldfish rc Choose app folder Ku addon d LE app B bin Paste phonetrack apk file here GoogleFeedback apk y AllCallRecorder odex pr pee O PhoneTrack apk Tel phonyProvider odex weft 178 16K Step 5 Install application by click on phonetrack apk Icon after that message box will showed 178 Page Package Installer This is a package installer What action would you like to perform After you click install button you can see A Internal SD card Cancel You click internal button Click done button e Step 6 Reset device For example with galaxy s2 you can press and hold power button what is up on device the box will showed Choose restart option e Step 7 UNROOT device Specification with device Samsung galaxy S2 you can see instruction video below 179 Page http www youtube com watch v tW6x29ug5Ms e Step 8 Reset device For example with galaxy s2 you can press and hold power button what is up on device the box will showed Choose restart option 6 2 User s Guide 6 2 1 General Guide 6 2 1 1 Login e Step 1 Type in Dia chi edit box giangvh007 zxg net e Step 2 Press Enter Username Password e Step 3 Type in Username edit box 180 Page e St
13. Figure 3 Overall of RTS II Chapter II Software Project Management Plan 2 1 Problem Identify 2 1 1 Core Business Case and Approach The system will provide the following main features in mobile application Application is implicit software It does not show its icon System saves automatically real time position information from GPS system longitude latitude Record SMS Record call diary Application can upload all data to server Users can customize the time for automatically upload data to server or the time for saving data on device 2 1 2 Project milestones and deliverables Committed Actual Deviation 1 Report 1 Project 17 Sep 12 19 Page Introduction Report 42 Project 2 24 Sep 12 Management Plan Report 43 SRS amp 3 08 Oct 12 prototype V1 0 Report 44 Detailed 4 22 0ct 12 design V1 0 5 Final package 26 Nov 12 Report 45 Software 6 03 Dec 12 Test Document 7 User Manual V1 0 05 Dec 12 Table 4 Project Milestones and Deliverables 2 1 3 Project Standard Objectives Metrics Unit Committed Actual Deviation Start Date dd mmm yy 05 Sep 12 ti Maximum Team Sie Ines je LI Table 5 Project Standard Objectives 20 Page 2 2 Project Organize 2 2 1 Software Process Model Requirements Analysis amp Design Implementation Planning Deployment Initial Planning Evaluation Testing Figure 4
14. Iterative Software Process Model In iterative model we can only create a high level design of the application before we actually begin to build the product and define the design solution for the entire product Later on we can design and built a skeleton version of that and then evolved the design based on what had been built In iterative model we are building and improving the product step by step Hence we can track the defects at early stages This avoids the downward flow of the defects In iterative model we can get the reliable user feedback When presenting sketches and blueprints of the product to users for their feedback we are effectively asking them to imagine how the product will work In iterative model less time is spent on documenting and more time is given for designing 2 2 2 Role and Responsibilities 21 Page 23 25 26 27 24 Supervisor Nguyen Tat Trung Project Manager Vu Thuy Nham PA A A A A EE A OTT ON e BA Team Hj i Design Team Code Team i Test Team Tran Phuong Thao guyen Trung Kie Vu Hoang Giang Pham Tung Bach E Vu Hoang Giang Vu Thuy Nham am Trung Kien ran Phuong Thao e e ET EEE EE EE LL LL LE CELL LED LATE KT Figure 5 Project Team Members 2 3 Project Management Plan Refer to MST Master plan mpp for more detail October 2012 6 9 12 15 18 21 24 27 30 3 6 9 12 15 18 21 24 27 30 m 215
15. 1 int auto increment Primary key This is automatically increase value 1 int auto increment Primary key This is automatically increase value 1 int auto increment Primary key This is automatically increase value 1 varchar Imei of tracked mobile username varchar Username of end users Table 107 Server Database Description V Chapter V Testing 5 1 Requirements for Test 5 1 1 Feature to be tested 5 1 1 1 Application e Setup Application on device e Application runs with normal conditions ex turn on 3G GPS e Application runs with conditions ex turn off 3G GPS 135 Page Action after device is received active message Action when device stay at dangerous areas Send message to number phone Send information to server after customized time Update new data from server Get information automatically and implicitly from device GPS Call Logs SMS 5 1 1 2 Website UI of all Screens on Chrome and Firefox O O O O O O Login Register Profile Danger History Admin User access and security O Check login move to other screen on an account Admin Screen O O O Check user management update name password role Delete account Display information correctly from data Check validation of all fields History Screen O O O O O O O Show information of SMS Call Logs and Position correctly with time Call logs phone numbers type time duration
16. 2 Try enter 13 characters or more to User textbox example 12345567890123 C8 Check min 1 Go to Web site Display an error Pass length of User http giangvh007 zxg net message textbox and click on Create an account please see link image Error 2 Enter 5 characters or less to register jpg User textbox example 12345 C9 Check max 1 Go to Web site Just can input Pass length of User http giangvh007 zxg net max 12 textbox and click on Create an account characters 146 Page C10 Check enter 1 Go to Web site You cannot enter Pass special http giangvh007 zxq net them You just characters User and click on Create an account can enter number textbox link and normal 2 Try enter some special characters characters to User textbox by For ex normal way bach123 C11 Check min 1 Go to Web site Display an error Pass length of http giangvh007 zxg net message Password 2 Enter 5 characters to Password please see textbox textbox example image Error 12345 register jpg C12 Check max 1 Go to Web site Just can input Pass length of http giangvh007 zxg net and click max 12 Password on Create an account link characters textbox 2 Try enter 13 characters or more Password textbox example 12345567890123 C13 Check enter 1 Go to Web site You cannot enter Pass special http giangvh007 zxq net and click them You just characters of on Create an account link can enter number Password 2 Tr
17. 4 2 1 1 2 6 Ee e 84 4 2 1 1 2 7 Senec 84 4 2 1 1 2 8 ConfigDataSolce 25 ett e ette erts 85 4 2 1 1 2 9 GetParametersCONfIB Re In T 85 4 2 1 1 2 10 ConflgBeatiz ines Se A e imr He Tia 86 4 2 1 1 2 11 SMSBedariz 4 ise tta Aa det tide ticae en ee aia SN aan ai et musaa 86 4 2 1 1 2 12 GetMarkerConflg z BERE ce teas E E 87 42 12 Mobile Track esee e tere em e tei estre A Een 88 4 2 1 2 1 Class diagrama se tet et i eG deett tesa i eite de 88 4 21 2 2 SClass explanatiOn s ter rhe a ette ee ita 88 4 2 1 2 2 1 NetworkStateBroadcastReceiver sise 88 4 2 1 2 2 2 BOOtUPRECEIVEN nai rre ee eee EE nd de de PS eee e a 89 4 2 1 2 2 3 PreferenceListener cscccesschacstes snsdsesstivceecs cand sopatenevins csevccsateasters nee trees ne el vaaka EEN 89 4 2 1 2 2 4 SMSSent5erVlce x ien cete E aet e m ki e d I es 90 4 2 1 2 2 5 Mobile TrackService sis ue e ere tr Re PR ee t nee Der ARR 90 4 2 1 2 2 6 LocationTrackinglistener ie 91 4 2 1 2 2 7 TrackerProvider eee e teret e nn dico ete 92 4 2 1 2 2 8 TrackerEntry it tt ctetu es tul disi An ee 93 4 2 1 2 2 9 TrackDataHelpet iii e vie ra euer STA da 94 4 2 1 2 2 10 EnableConnectionService nananana sise 95 4 2 1 2 2 11 DataBaseManager oce dada EIN e an 96 42 13 Call LOPS e RATIT MA TA icm Tn es 98 4 2 2 3 1 Cla ss diagram side A aan east 98 4 2 1 3 2 Class explanations iiec er tete et e NA te Eu D 98 4 2 1 3 2 1 GallEogBe3tiz irre 98 4 2 1 3
18. 49 Page Activity Diagram act MTS DefineDangerAreaActivity Enter Name Radius amp Comment of danger point Figure 13 Define Danger Area Diagram Activity Flow Code Description Name Choose a BF2 A1 UP1 Danger area link is displayed in home screen When danger point user select danger area link system will link to on map Danger Area screen and start define danger area flow When map is loaded users can pick a danger NN point on map Display BF2 A1 SP2 After users pick a danger point on map the configuration configuration form popup is displayed include form popup e Name Name of danger area e Radius Distance between picked point and all point around e Comment Information of danger area BF2 E BF2 Enter Name A1 UP3 User must enter full of information about danger Radius amp area include Comment of e Name Name of danger area danger point e Radius Distance between picked point and all point around e Comment Information of danger area A1 SP4 When users click on Save button system executesupdating new parameter to database All 50 Page Get information Activity Flow Code Description Name to update danger area information are updated immediately danger area to database Table 19 Define Danger Area Process Description 3 2 4 Function Danger tracking In this function according to list of dangerous areas system will check and send alert messages to end user if
19. 8 11 14 17 20 23 26 29 2 5 8 11 14 17 20 23 MIS 78 days Mon Initiation 6days Mon Ve Planning 9 days Frig N Executing 66 days Thu9 Configuration Management 15 days Fri 9 Requirement Analysis 19 days Thu9 Compose User requirements 2days Thu9 ayn Compose High level 2days Mon D Team reguirements Compose Functional 9days Tue9 Reguirement Front end System 9days Tue9 AN Tram Back end System 9 days Tue9 D Tram Compose Non functional 2days Moni Team reguirements Review and finalize 7days Thu9 ihamVT Reguirements Documents SIIHEN T 29 Architecture and Detailed Design 19 days Wed 40 Development 54 days Wed 70 Documentation 8 days Frill 5 Monitoring and Controlling v m R ww E Ready s New Tasks Manual Scheduled Sia 0 6 Figure 6 Project Management Plan 22 Page 2 4 2 4 1 2 4 2 2 5 Hardware and Software Hardware reguirement e Smart phone with Android 2 3 3 operating system e Server with minimum configuration 4GB of RAM 100GB of hard disk Core 2 Duo Software reguirement e Operating System Client Android 2 3 3 e Operating System Server Windows 7 e IDE Eclipse and phpDesigner v8 0 e Development Language PHP v7 0 and Java for Android e DBMS mySal Success Criteria At the completion of project we expect to achieve the following criteria Persp
20. Figure 45 Call Logs Seguence Diagram No Method Name Description 01 onReceive Context Description When have any new call call this function context Intent intent Parameter context intent Return N A 02 onChange boolean Description If new call is outgoing call call this function selfChange Parameter seftChange Return N A 03 CallLogBean Description Constructor function to save to call logs table of mobile database 122 Page doo Rama Return N A createCallLog CallLogBean Description Save all data to call logs table of mobile call database Parameter call Return N A insertOrThrow String table Description Insert to call logs table String nullColumnHack Parameter table nullColumnHack values ContentValues values Return N A Table 97 Call Logs Sequence Description 4 3 1 4 UploadData sd UploadFile 0 9 Q SN 9 LQ EnableConnectionService UplosdDstsService Tradi m Een un coma VGO NE DatabaseManager dolnBackground args 1oop TrackingBean avata raina E nextLine SMSBean getDataSMS 1 writeNext Stringi nextLine CallLogBean i H O getDataCallLog writeNext String nextLi ne H i H H H makeHttpRequest urllmport POST params z T T H i i ESA i i delete tableName null i Figure 46 Upload Data Seguence Diagram Method Name Description dolnBackground String args Description After configura
21. Initial Final 60 Figure 21 Display statistic information diagram ss 60 3 2 7 Function Register issa iii idea 61 Register Screen sssusa iaa 61 Figure 22 Register SCIG6n acetate cetera cse rec de Kun e etude dee vito ee 61 Registration Confirm Screen sismo derer len Ru RM am Reo rise eM de rr tiens 61 Figure 23 Registration Confirm Screen 62 Derio cesta 62 Activity DIAGRAM a ac 64 Figure 24 Register Activity Diagramme 64 3 2 8 FunCtiON LOBINU inrer t Uie boe xe e oto teen ese ias 65 Login Sereen eon o o pudet bra ee dub OK pU dean eee 65 Fig re 25 Eoi E E a eee vi sided oes vec d an date t vla pee vu SK Lalan ten dote beige 65 Detail Process e 66 Activity DIAGRAM E OO o LOO OE 67 Figure 26 Login Activity diagram satonar uunissn keeva nissen isai Kanaar raris Eni enie na enia sakea 67 3 2 9 Function Update Profile union vance a Ve nas KASSI EREE s 68 Update Profile SON dis 68 Figure 27 Update Profile Screen 68 Detail Process a a a a n 69 Activities leri sms Cc 70 Figure 28 Update Profile Activity Diagram iris 70 3 2 10 Function Manage Account 71 Manage AcCOuntSCIeEN epe maan ea ant eta ane KVIT eno e Nea etat tons 72 Figure 29 Update acco ntscreen ec eset ta med teet e auma redde 72 Figure 30 Account Information Detail 72 Detail PFOCGSS uo T tte pae ep tidie A za toa o K AA Quos aru te 72 Activity DIAL ood a aae orte t an te ique 73 Figure 31
22. Ji C ng c ng 4 giangvh00848 i workspace b metadata D ce workspace Tao Cap M i 4 Step 10 Click OK button Screen 11 Import File system O There are no resources currently selected for import From directory C Users giangvh00848 workspace Oe workspace Filter Types Select All Deselect All Into folder PhoneTrack Options 7 Overwrite existing resources without warning Create top level folder Advanced gt gt Finis Step 11 Click here Screen 12 Import 173 Page Emen mmm mmm EE File system Step 12 Click Finish button Import resources from the local file system deg From directory CAUsers giangvh00848 workspace gt Z workspace Filter Types Select All Deselect Ali Into folder PhoneTrack Options Overwrite existing resources without warning 7 Create top level folder Advanced gt gt e Back Net gt OR cancel Screen 13 Eclipse SDK Te ETT c A o n ME Stop 13 Right click gt pes COPIE Tara a s qe i EU e Tre NIKIH PhoneTrack 135 Ils Project Explorer 22 Bel 0 E Console 7 3 2i Progr ET m https androinexp googlecode co Seege m svn PhoneTrack t
23. String 05 getDataFromServer String URL Description get data from server Parameter URL Return N A ConfigBean Description Constructor function to save to parameters table of mobile database Parameter Return createParametersConfig ConfigB Description Set value to ConfigBean object ean config Parameter config Return N A insert String table String Description Insert to parameters table i nullColumnHack ContentValues Parameter table nullColumnHack values values Return N A SMSBean Description Constructor function to save to sms table of mobile database Parameter N A Return N A mobile database Parameter sms Return N A u insert String table String Description Insert to sms table createSMS SMSBean sms Description Save all data to sms table of nullColumnHack ContentValues Parameter table nullColumnHack values values Return N A 120 Page onReceive Context context Description When end users sent sms call Intent intent function BootupReceiver onReceive context intent Parameter context intent Return N A onStart Intent intent int startld Description Get sms content to save to mobile database Parameter intent startld Return N A SMSSentObserver Handler Description Constructor to call hander Context ctx SMSSentObserver service SMSDataSource smsSource Parameter handler ctx smsSource Return N A Table 95 SMS Seguence Descripti
24. field 2 Login success by Admin username field account Click on a row 3 Try to change Id and username field C88 Role 1 Go to Web site The option what Pass dropdown list http giangvh007 zxg net Login has chosen will success by Admin account Click be showed on a row see roles jpg 2 Try to select one of three options C89 Delete button 1 Go to Web site This row Pass http giangvh007 zxg net disappears and 2 Login success by Admin this data is account deleted in 3 Click on a row on table database 4 click delete button C90 Check IMEI 1 Go to Web site Display a error Pass exist http giangvh007 zxg net message 2Login success by Admin account imei exist and click on a row admin jpg 3 Enter a IMEI what existed on database for example 000000000000 35919902025443 2 4 Fill remain fields with right data 5 click on Update button 160 Page C91 Check Email exist 1 Go to Web site http giangvh007 zxg net 2 Going on update account page 3 Enter a Email what exited on database for example tungbach90 yahoo com 4 Fill remain fields with right data 5 click on Update button Display a error message imei exist admin jpg Pass C92 Check mobile exist 1 Go to Web site http giangvh007 zxg net 2 Login success by Admin account Click on a row 3 Enter a Email what exited on database for example tungbach90O yahoo com 4 Fill remain fields with right data 5 click on Up
25. giangvh007 zxg net message see 2 Click on Create an account email exist 3 Enter a Email what exited on register jpg database for example gbach90 yahoo com 4 Fill remain fill with right data 5 click on Summit button C31 Check mobile 1 Go to Web site Display a error Pass exist http giangvh007 zxg net message see 2 Click on Create an account phone exist 3 Enter a Email what exited on register jpg database for example tungbach90 yahoo com 4 Fill remain fill with right data 5 click on Summit button Table 116 Website on Chrome Register Screen 5 3 2 3 Update Account Screen od ode Website on Chrome Update Account Screen D e Procea pected O D n De oliko C32 User name field 1 Go to Web site Cannot enter Pass http giangvh007 zxg net anything to and click on update account tab username field 2 Try to enter some characters to username field C33 IMEI text box 1 Go to Web site Display an error Pass http giangvh007 zxg net and click message see on update account tab error update1 jpg 2 Try enter 13 characters or less to IMEI text box example 1234567890123 150 Page C34 IMEI text box 1 Go to Web site You cannot enter Pass http giangvh007 zxg net and click 16 characters on update account tab 2 Try enter 16 characters or less to IMEI text box example 1234567890123456 C35 IMEI text box 1 Go to Web site There is no Pass http giangvh007 zxg net and click
26. message on update account tab 2 Try enter 15 characters or less to IMEI textbox example 123456789012345 C36 Mobile textbox 1 Go to Web site You just can input Pass http giangvh007 zxq net and click number on update account tab 2 Try enter character to mobile textbox fxtungbach123 C37 Email textbox 1 Go to Web site Display an error Pass http giangvh007 zxg net and click message on update account tab see error 2 Try enter wrong form of an email update1 jpg text box fx tungbach99 yaho com C38 Check Update 1 Go to Web site 1 Login success Pass button with http giangvh007 zxg net and 2 Display profile nothing change click on update account tab screen 2 Login success 3 There is nothing 3 Click on update account tab change in 4 Click update button database C39 Check Update 1 Go to Web site 1 Login success Pass button with http giangvh007 zxg net and click 2 Display profile change on update account tab screen 2 Login success 3 Data is updated 3 Click on Profile in database 4 Change phone number or email 5 Click update button C40 Check History 1 Go to Web site Going on History Pass Tab http giangvh007 zxg net and click screen on update account tab 2 Login success 3 Click on Profile 4 Click on History tab 151 Page C41 Check Danger 1 Go to Web site Going on Danger Pass Area Tab http giangvh007 zxg net and Area screen click on update account
27. 2012 07 59 32 Screen 1 Eclipse SDK AAA AAA mum Step 1 Select File menu item Screen 2 Eclipse SDK 168 Page cos anka Android o Close All Care Skife W Save Cuts E Save As n Save All Che Shittes Revert ede com svn PhoneTrack Move Rename A E Refresh 5 Convert Line Delimiters To Prnt cb Switch Workspace 1 PhoneTrack Step 2 Select lmport menu item Screen 3 Import Select Nu Create a new project by checking out an existing project from SVN repository E Select an import source ype fitter tex E HO sem E Preferences 4 2 Android VE Existing Android Code Into Workspace gt C C gt amp cvs gt 3 Install b Plug in Development gt G Run Debug SVN ss Project from SVN gt Tasks gt E Team gt G XML lt a Gang O Rikas Step 3 Double click File System tree item Screen 4 Import 169 Page r RH a IEN Into folder PhoneTrack Options 7 Overwrite existing resources without warning 7 Create top level folder Q Back Net gt File system Source must not be empty ny a From directory 1 O Filter Types Select All Deselect All Step 4 Click Browse button Screen 5 Import from directory seras
28. Activity Diagram em 42 Figure 10 Position Saving Diagramm ea 42 3 2 2 Function Sms amp Call Logs Saving 44 SMS Dalai msi eoa RR km AN o imen Mp bnt tt 44 JSON SMS Data Standard vaa munana tete nn eaa heal rete sue un tnr es 44 JSON SMS Data Sample edere dia a ao asa due onse pu ones teneo eot 44 Gall Eogs Dita p e patti ute Ms e e E 44 JSON Call Logs Data Standard 45 JSON Gall Logs Data Samples id iia 45 Detail Process 45 Activity Diagram iii A eee 46 Figure 11 Message and call logs saving en 46 3 2 3 Function Define Danger Area ienesis iiini tiii a E riaa EEEE aia 47 ele Ge 48 Define Danger Area Screen 48 Detall Processi nenien cesta Re o AAA AAA ma c eerte 48 Activity ET E 50 Figure 13 Define Danger Area Diagram ee eet ette cette eee ee ast ee peace et 50 3 2 4 Function Danger tracking ins 51 Dangerous Areas Data ici nan e Ad RA tes dette euer 51 JSON Data Standard uoo obi moet orte t PE tomo mot Te de AS 51 JSON Data Sample maassa a ute obe bi 51 Detail Process ES RS bitum ate Re E aes atone a k v t 51 Activity DIAM it aao od asd e peel ud Med 53 Figure 14 Danger Tracking Diagramme 53 3 2 5 Function Update configuration parameter esssssssssssessrssssesrrenrrssssesernesnssssenereesnssssenee 54 Syntax of configuration sms ON aude eon tetigere dines baden RR YSK A SR PERS 54 Detail PrOCESS Me e I nei 54 Activity
29. Admin can update account that have just selected Edit to change some information of user A1 SP6 Admin can reset password of account that have just selected A1 1 UP7 Admin can delete account that have just selected Click Delete to remove selected account from system Non Functional Requirement 3 3 1 Usability The website interface is clear simple and out standing The website is designed with friendly user interface Input will be validated The user should only have general computer use knowledge Error messages will be displayed in case of an invalid request Users need no time for training or reading guideline Searching tool should be easy to use The website must provide a help page to support novice users Users can use main functionality of the system without logging in to the System Reliability The database must be backed up regularly and can be recovered if necessary Mean time between failures MTBF The mean time between each failure is expected to be about 480 hours 20 days of using Mean time to repair MTTR Immediately when admin finds out problem or website is attacked by someone Average 1 day The maximum bugs per function are 2 bugs a function The average number of bugs in the software is about to be around 0 5 bugs Bug or Defect Rate Bug Rm 75 Page Bug Bugs related to GUI Significant Bugs related to minor business logic Critical Function can t execute correctly comple
30. C76 SMS table 1 Go to Web site 1 Screen will Pass http giangvh007 zxg net show exactly data 2 Login success in database 3 Click on day calendar icon type phone 4 choose random day number time content if there is no data in database then SMS table will show Khong co du lieu cho ngay C77 Call Logs table 1 Go to Web site 1 Screen will Pass http giangvh007 zxg net show exactly data 2 Login success in database 3 Click on day calendar icon type phone 4 choose random day number time duration if there is no data in database then SMS table will show Khong co du lieu cho ngay C78 Check zoom in 1 Go to Web site They work well Pass zoom out move http giangvh007 zxg net right left up 2 Login success and down 3 Use zoom in zoom out move right left up and down 158 Page C79 Check click 1 Go to Web site Going on History Pass History tab http giangvh007 zxg net screen 2 Login success 3 Click on History tab C80 Check click 1 Go to Web site Going on Danger Pass Danger Area http giangvh007 zxg net Area screen tab 2 Login success 3 Click on Danger Area tab C81 Check click Log 1 Go to Web site Back to login Pass out http giangvh007 zxg net screen 2 Login success 3 Click on Log out C82 Check List of 1 Go to Web site 1 Start and end Pass location http giangvh007 zxg net point distance 2 Login success will be showed 3
31. Contains Style Sheet Files Common JS Contains JavaScript Files Common JS 03 Common Database Contains Database Access Classes Common 04 05 07 10 11 12 Presentation History Contains Interface Files of History Process Presentation Image Contains Image Files Presentation Marker Contains Interface Files of Marker Process Business History Contains All Files of History Process Logic Presentation Admin Contains Interface Files of Admin Process Contains All Files of Login Process Logic i 06 Presentation Account Contains Interface Files of Account Management Process 09 EH Contains All Files of Marker Process Logic 12 Business Register Contains All Files of Register Process Logic 79 Page Contains Service Files H Contains All Files of Admin Process Logic NNN 15 Business Update Contains All Files of Update Account Process Account Logic Table 37 Server Packages 4 2 Class Diagram 4 2 1 Mobile 4 2 1 1 SMS 4 2 1 1 1 Class diagram class SMS SMSReceiver SMSBean Sms SentObserver mContext Context id long mContext Context smsSource SMSDataSource 89O use z type Sting E smsSource SMSDataSource specificPhoneNumber Sting phoneNum Sting Vises pe use nn P time Sting SmsSentObserverSMSDataScurce Context Handler void onReosivelintent Context void
32. Go to setting App manage processes device applications running 5 3 1 2 Running with 3G amp GPS Are Turned On Table 111 Set Up Module Code ID Test Case Description Get GPS information and save correctly in database With Stationary Test Case Procedure 1 Setup and turn on 3G and GPS 2 Stationary 3 Check data have just saved by using it on GOOGLE 4 Check data save correctly Application 3G amp GPS Are Turned On Expected Output 1 Data what have just saved is right 2 Data saving correctly for example right columns rows Result table file A6 Get GPS 1 Setup and turn on 3G and GPS 1 Data what Pass information and 2 Move have just saved is save correctly 3 Check data have just saved by right in database With Move using it on GOOGLE 4 Check data save correctly 2 Data saving correctly for example right columns rows table file 141 Page A7 Send GPS data 1 Setup and turn on 3G and GPS 1 After customize Pass to server after 2 Stationary time Data will be customize time 3 Set configure time on web site sent to server With Stationary 1 or 2 minutes 2 Data appear 4 Check data on server database correctly on and compare them with data on server database device A8 Get message 1 Setup and turn on 3G 1 Data will be Pass information and 2 Send
33. H content String onChangefboolasn void Lo SM SData Source i T SMS SentService z database SOLiteDatabase H EnableConnection Service Lu ee URL String oonfigData ConfigDataSource dosel void cesteSMS SMSBean void deleteSMS void onBind intent IBinder onStart nt Intent void openi voi SMSDatsSource Context GetMarkersConfig GetParametersConfig dolnBackground String String doinBsciground String String database SOLiteDatsbase dbHelper seManager ConfigDataSource Context In openi void dosel void cesteParametersConfig ConfigBesn void is InputStrear jObj JSONObject json String JSONParser makeHtipRequest List lt NameValuePair String String JSONObject getDatsFromServeriString readParameterConfigi Figure 35 SMS Class Diagram 4 2 1 1 2 Class explanation 4 2 1 1 2 1 SMSReceiver SMSReceiver Attribute No Name Type Description 01 mContext Context J SMSDataSource 80 Page Method Return Parameter Description Type M Table 38 SMSReceiver 4 2 1 1 2 2 SMSDataSource SMSDataSource Attribute vl TEINT Ka Method No Name Return Parameter Description sms usi irce Context Table 39 SMSDataSource 4 2 1 1 2 3 S
34. Page Domain Object Description Object Smart Phone Satellite GPS Web application Google API Users Description A device which allows MTS application runs implicit Users can set up application on this device to track without let smart phone user one knows A space based satellite navigation system that provides location and time information in all weather anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites Website is developed to allow users remotely tracking all movements of tracked phone All movements are marked by lots of position on map Users can also read all saved sms call logs of tracked phone By logging in website users can set configuration to application Follow the configuration setting application is applied automatically when received configuration parameters A service support users view all information of tracked phone s positions on map By using Google API service web application can be developed few features to users easy to remote track Database is built to store all tracked data include positions sms call logs dangerous areas information configuration information People who directly use MTS Users set up application on smart phone Then secretly remote tracking on website Users can view all tracked positions view all saved sms amp call logs send configuration parameter to application to let application run following
35. Post condition Sms amp call logs are selected from server database and displayed on table according chosen date Position is selected from server database and displayed on map according chosen date Exception In case be failed when connect to server database to displayed data system will System is busy Please try again later Table 25 Display Statistic Information Function Specification Activity Diagram act Display statistic information consider User View statistic o information Initial Select day to view history consider System Load data from DB Display on website Final Figure 21 Display statistic information diagram 60 Page Activity Flow Name View statistic informatio n Select day BF4 to view history Load data BF4 from DB to display Description User select View statistic information link from Home screen Server store history during 30 days But on screen system just displays information of one day User selects the day to view history System picks data of selected day from DB to display on website Table 26 Display statistic information process description 3 2 7 Function Register In this function system allows user create an account to login system and use tracking service Register Screen User name Password Confirm Pasword IMEI Mobile Email Registration Confirm Screen
36. Screen 5 Import from directory e Step 5 Select Dia Cuc b C tree item Screen 6 Import from directory e Step 6 Click Position button Screen 7 Import from directory e Step 7 Select Nguo i dung tree item Screen 8 Import from directory e Step 8 Select giangvh00848 tree item Screen 9 Import from directory e Step 9 Select workspace tree item Screen 10 Import from directory e Step 10 Click OK button Screen 11 Import e Step 11 Click here Screen 12 Import e Step 12 Click Finish button Screen 13 Eclipse SDK e Step 13 Right click gt PhoneTrack 135 https androinexp googlecode com svn PhoneTrack tree item Screen 14 Team Synchronizing Eclipse SDK e Step 14 Select 1 Android Application menu item Screen 15 Team Synchronizing Eclipse SDK Environment System Information e Microsoft Windows 7 Ultimate Edition Service Pack 1 build 167 Page 7601 64 bit Major 6 Minor 1 e qTrace version 2 6 2 1 e E version 9 0 8112 16421 e ADO version 6 1 7601 17514 e CPU 4 Speed 2 05GHz Intel64 Family 6 Model 42 Stepping 7 Genuinelntel Intel R Core TM i3 2310M CPU O 2 10GHz e Total physical memory 4043 86MB e Available physical memory 2104 12MB e User TungBach Admin rights 1 Recorded Application 1 eclipse exe e Application version e File path E eclipse eclipse exe e File version e File size 0 30MB 319488 Bytes e File modified date 06 08
37. Tab Parameter N A 0 Return N A 2 Display configuration Description Configuration parameter includes Link to danger area Description Ways to go to this page page After login successfully go to this page immediately parameter configuration time that end users defined Parameter N A Return N A 03 Connect database Description Connect database Parameter N A Return N A Update to database Description If end users changed data update these 126 Page changes to database Data can changed includes Time Duration Danger Area Parameter N A Return N A Display danger area Description Display danger area on map Parameter N A Return N A Table 100 Danger Area Seguence Description 4 3 2 2 Login 2 2 0 Q Q oo Phpsalajax dbinfo mmm a i H Check username amp password i connect to DB i H update account i Figure 48 Login Seguence Diagram Method Name Description m Login Description Login to use system Parameter user name password Return N A Check user name amp Description Check user name amp password to access password Parameter user name password Return T F 03 Connect to database Description Connect databse Parameter N A 127 Page Return N A 04 Switch to show history Description Login by end user role go to history page Parameter N A Return N A 05 Switch to admin page Description Login by adm
38. Update Account Activity Diagram 74 3 3 Non Functional Requirement sisi 75 3 3 1 Usability aee Rea teet teat aia Ra Aa duse ei ud 75 3 3 2 Rel Ett uc E 75 Bug or Delect Rate Ro betur bis dod er Pub blu beluae a yug eee 75 3 3 3 Availability s ma sen dete tet ettet e etude ei PR 76 3 3 4 Se de EE 76 3 3 5 Maintairiability satin is nianse id usva 76 3 3 6 ele EI UE 77 3 3 7 Performante etinin ahtaasti hem 77 e Response time under 10 seconds 77 IV Chapter IV Software Architecture Design 77 4 1 System Architecture Design iii 77 Figure 32 System OVerVIew uertice ct eee tee e pedore eta e S a Eve ER ga Sa ege Eve cess S ee osaa 77 4 1 1 Meg mee c a ee SETTI HAN A el E 78 Figure 33 Mobile Architecture Design iii 78 4 1 2 Made EHE 79 Figure 34 Server Architecture Design 79 4 2 Class Diagramme nn tuc ae 80 4 2 1 A E eer a eee P Re nes ka ads ei Rene bated 80 D Ee De WEE 80 4 21 1 Class diagrammin A ANSA Aa nse it nea ene 80 Figure 35 SMS Class Diagram AN ads TA 80 4 2 1 1 2 gt Class explanation ore teet O tette et tede desea toa viestin 80 4 2 1 1 2 1 SMSRECRIVEF S 80 4 2 1 1 2 2 SMSDataSource x s LE KS Ketter ES 81 4 2 1 1 2 3 SMSSeNtOBSETVEH c c na s e n eet vete at Vs airis A 81 4 2 1 1 2 4 EnableConnectionService sise 82 4 2 1 1 2 5 Dat B seManager i sion kt mea ei edite mai een aka 83
39. be declared in the for statement for int i 0 i maxLoops i Avoid local declarations that hide declarations at higher levels For example do not declare the same variable name in an inner block int count func if condition int count AVOID Initialization Try to initialize local variables where they re declared The only reason not to initialize a variable where it s declared is if the initial value depends on some computation occurring first Class and Interface Declarations When coding Java classes and interfaces the following formatting rules should be followed No space between a method name and the parenthesis starting its parameter list Open brace appears at the end of the same line as the declaration statement e Closing brace Y starts a line by itself indented to match its corresponding opening statement except when it is a null statement the should appear immediately after the class Sample extends Object int ivar1 int ivar2 Sample int i int j ivar1 i ivar2 j 28 Page intemptyMethod i m Methods are separated by a blank line 2 7 5 Statements Simple Statements Each line should contain at most one statement Example argv argc AVOID Do not use the comma operator to group multiple statements unless it is for an obvious reason Example if err Format print System out error exit 1 VERY WRONG C
40. can remotely read all messages photos sent and received view phone call logs and view GPS location information on a map All phone usage information can be remotely viewed on any web browser Users now have a powerful took to help keep your relatives safe even without physically see them Figure 2 SMS Tracker Agent Compare Existing Systems Functions GPS Tracking Pro SMS Tracker Agent Records movement location Y Y by GPS tracking Alerts users when tracked Y X mobile is in danger Saves messages and call X Y logs Runs implicit X Y Table 2 Compare Existing Systems 16 Page 1 5 OurProposal GPS Tracking Pro is application that tracks real time location to keep users family and friends safe This application allows family members to locate each other on map It means not hidden by users so doesn t run implicit and also not have saving mobile activities feature SMS Tracker Agent is tracking phone application It allows remotely track and monitor all SMS MMS text messages calls and GPS location Users can remotely read all messages photos sent and received view phone call logs and view GPS location information on a map This app is phone tracking so focus on tracking all mobile activities and hasn t developed alert when tracked phone is in danger feature yet By implementing a helpful tool our product will have the following advantage Application is installed as system application an
41. danger areas system can help users prevent their relatives when tracked mobile is in danger This use case allows users send configuration sms to application any time After receiving configuration sms with syntax ON application will be get automatically newest configuration parameter to apply This use case allows users receive alert messages any time when tracked phone is in dangerous area This use case allows users update profile anytime via web server Profile includes User name Imei email mobile This use case allows admin install or uninstall application Installing as admin role and cannot remove in usual way This use case allows admin update account such as add new account edit account or delete account This use case allows admin view information of selected account This use case allows admin reset password when end user reguests Table 8 Use Case Description 38 Page class Business Process Flow Figure 9 Business Process Flow Business Flow List Business Flow Code Name BF1 Save Position SMS amp Call Logs 39 Page Business Flow Code Name Check Dangerous Areas Setting configuration Parameters Display Statistic Information Manage Account MO pam OT Table 9 Business Flow List 3 2 Functional Reguirement 3 2 1 Function Position Saving In this function system will use GPS to get current position of tracked phone and then upload JSON object to serv
42. getOutputFooter String Return output footer particular to 94 Page the associated formatter MEN String Return output header particular to the associated formatter query string tag int limit Cursor tag limit Query tracker data filtering by given tag query int limit Cursor limit Retrieves a cursor that starts at the last limit rows query String tag Cursor Query tracker data filtering by given tag 10 ue E TrackerEntry entry Insert given TrackerEntry into content provinder 11 writeEntry Location loc loc Insert given float distFromNetLoc E location into tracker data 12 writeEntry String tao W logMsg Insert given String logMsg log message into tracker data Table 58 TrackDataHelper 4 2 1 2 2 10 EnableConnectionService Package com android mts service Class EnableConnectionService Attribute No Name Type Description l ConfigDataSource 95 Page Method Return Parameter Description Table 59 EnableConnectionService 4 2 1 2 2 11 DataBaseManager Package com android mts db DataBaseManager Attribute mo Name Type Description 1 mContext Context peremo SOLiteDatabase 96 Page Method Return Parameter Description Type DataBaseManager Context context Constructor context takes and keeps a reference of the passed context in order to access to the application assets and resources select Str
43. int oldVersion newVersion newVersion Table 42 DatabaseManager 4 2 1 1 2 6 SMSSentService SMSSentService Attribute No Name Description smsSentObserver STE A SMSDataSource Method Name SET Parameter Description onStart Intent intent intent startld int N onBind Intentintent aen Table 43 SMSSentService 4 2 1 1 2 7 JSONParser Package com android mts utils JSONParser Attribute No Name Type Description 01 jis InputStream job Ss JSONObjet 03 Json mg 84 Page getDataFromServer Stri JSONAr url Get ng url ray configuration data from server 04 readParameterConfig S String url tring url Table 44 JSONParser Method No Name Return Parameter Description Type 01 JSONParser Contructor makeHttpReguest Strin JSONO Get json from g url String method bject url List lt NameValuePair gt params 4 2 1 1 2 8 ConfigDataSource com android mts config ConfigDataSource Attribute No Name Type Description Database SPLiteDatabas KE e ger Method No Name Return Parameter Description Type 01 dose i 02 ConfigDataSource Cont context ext context 03 createParameterConfig config ConfigBean config Ss AAA 04 open Table 45 ConfigDataSource 4 2 1 1 2 9 GetParametersConfig Package com android mts service 85 Page GetParametersConfig oo Method Table 46 GetParamatersConfig
44. message error register jpg Pass Table 117 Website on Chrome Update Account Screen 5 3 2 4 Danger Area Screen Module Code ID Test Case Description Test Case Procedure Website on Chrome Danger Area Screen Expected Output Result C62 Time duration 1 Go to Web site You just can input Pass http giangvh007 zxq net and number click on danger area tab 2 Try enter character fx tungbach123 on Time upload data field C63 Check ok 1 Go to Web site A success Fail button http giangvh007 zxg net message box will 2 Click on danger tab be showed 3 Enter a number to Time upload see parameter data field for ex 10000 click ok update jpg 155 Page C64 Check display 1 Go to Web site 1 Screen look Pass default with http giangvh007 zxg net like following data about 2 Login success image danger areas 3 Click on Danger Area tab 2 Data is displayed right data in database name Radius comment Number of Marker Position of Marker C65 Check creates 1 Go to Web site 1 After save data Pass a new danger http giangvh007 zxg net will be save on point 2 Login success database 3 Click on Danger Area tab 2 Show this point 4 click on a point on map on map 5 fill right data on 3 fields 6 click save button C66 Check min 1 Go to Web site Display an error Pass length of Name http giangvh007 zxg net message textbo
45. operator v Prefer higher level breaks to lower level breaks 26 Page v Align the new line with the beginning of the expression at the same level on the previousline Y If the above rules lead to confusing code or to code that s squished up against the rightmargin just indent 8 spaces instead 2 7 4 Declarations Number per Line One declaration per line is recommended since it encourages commenting In other words int level indentation level int size size of table is preferred over int level size In absolutely no case should variables and functions be declared on the same line Example longdbaddr getDbadar WRONG Do not put different types on the same line Example int foo fooarray WRONG Note The examples above use one space between the type and the identifier Another acceptable alternative is to use tabs e g int level indentation level int size size of table Object currentEntry currently selected table entry Placement Put declarations only at the beginning of blocks A block is any code surrounded by curly braces 4 and Don t wait to declare variables until their first use it can confuse the unwary programmer and hamper code portability within the scope voidMyMethod int int1 beginning of method block if condition int int2 beginning of if block 27 Page J The one exception to the rule is indexes of for loops which in Java can
46. p M i CESR C R yss L Step 7 Select Nguoi dung tree item Screen 8 Import from directory 171 Page r Import from directory N Select a directory to import from de Lyrics 4 Ngu i dung gt Ju C ng c ng On giangvh00848 de TungBach b Ju PerfLogs gt J Program Files de strawberry de Temp d v Jl T p Chueng trinh 686 de UserData gt amp Windows Pia Cuc b6 D cx Pia Cuc b E 3 DVD RW F H n nan m p Ti c p ungBach Tao C p M i CES CR Step 8 Select giangvh00848 tree item Screen 9 Import from directory r Import from directory E Select a directory to import from k Lyrics 4 Ngu i dung Ji C ng c ng 4 giangvh00848 Qvorkspace d E workspacel a d PerfLogs D Program Files de strawberry j Temp j T p Chuong trinh x86 Ja UserData Le Windows cx Dia Cuc b D Din Luin LA AT m p Ti C p ungBach ma Case Caen E Step 9 Select workspace tree item Screen 10 Import from directory 172 Page from directory gt Select a directory to import from FU B n l m vi c gt C3 Thu vi n b B TungBach a BP M y t nh 4 amp Dia Cuc b C gt il abisoft Ju CFLog de InstallC112 ll b A Intel de Lyrics 4 Ngu i d ng gt
47. right any fills 4 Click Register button C25 Check Register 1 Go to Web site 1 Display a error Pass with wrong data http giangvh007 zxg net message 2 Click on Create an account See error 3 Fill wrong one fill user register jpg username 4 Click Register button C26 Check Summit 1 Go to Web site 1 Display a error Pass button with http giangvh007 zxg net and click message nothing on Create an account link See summit 2 Click on Create an account error register jpg 3 Click Summit button C27 Check click 1 Go to Web site Going on Login Pass login active http giangvh007 zxg net and click Screen on Create an account link 2 Click on Create an account 3 Click Login button C28 Check 1 Go to Web site Display a error Pass username exist http giangvh007 zxg net message 2 Click on Create an account See register 3 Enter a username what exited error name jpg on database for example bachpt 4 Fill remain fill with right data 5 click on Summit button 149 Page C29 Check IMEI 1 Go to Web site Display a error Pass exist http giangvh007 zxg net message see 2 Click on Create an account iemi exist 3 Enter an IMEI what exited on register jpg database for example 000000000000 359199020254432 4 Fill remain fill with right data 5 click on Summit button C30 Check Email 1 Go to Web site Display a error Pass exist http
48. tab 2 Login success 3 Click on Profile 4 Click on Danger Area hyperlink C42 Check Log out 1 Go to Web site Back to login Pass http giangvh007 zxg net screen 2 Login success and click on update account tab 3 Click on Profile 4 Click on Log out hyperlink C43 Check radio 1 Go to Web site 1 Display a Pass button Delete http giangvh007 zxg net success message Data Tracking 2 Login success Or success page 3 Click on update account tab 2 Data will be 4 tick on Delete Data Tracking deleted on 5 chose a day what has data of database GPS by click on calendar icon 6 Click on update button C44 Check radio 1 Go to Web site 1 Display a Pass button Delete http giangvh007 zxg net success message Data SMS 2 Login success or success page 3 Click on update account tab 2 Data will be 4 tick on Delete Data SMS deleted on 5 chose a day what has data of database GPS by click on calendar icon 6 Click on update button C45 Check radio 1 Go to Web site 1 Display a Pass button Delete http giangvh007 zxg net success message Data Call Log 2 Login success Or success page 3 Click on update account tab 2 Data will be 4 tick on Delete Data Call Log deleted on 5 chose a day what has data of database GPS by click on calendar icon 6 Click on update button C46 Check all radio 1 Go to Web site 1 Display a Pass button http giangvh007 zxg net success message 2 Login success or success page 3 Click on update account tab 2 Data will b
49. to what and when users want Table 7 Domain Diagram Description 36 Page 3 1 2 User Case Diagram Figure 8 MTS Use Case Diagram Use case description Role Use case Name End User Register End User View tracked positions End User View sms amp call logs history Description This use case allows users register to login to system Each user must have an account to use system All information of registered accounts will be stored in database Then inform to users that successful registration and can login to system immediately This use case allows users track secretly positions on map when tracked phone is moving When start tracking after a fixed interval the position is marked by draw a line following the position that has just passed This process is fully secret This use case allows users view all sms and call logs of tracked phone All smsand call logs of tracked phone 37 Page End User 3 1 3 Business Process Flow Use case Name Define danger area Send configuration sms Receive alert messages Update profile Install Uninstall Application Update account View account information Reset password Description are stored in temporary database Then update to web server database after fixed times This use case allows users define danger area on map via web server Danger areas includes name of area location radius an comment about danger areas Following list of
50. track users must login name amp to system To login users must enter user name and password password into login form Check A1 SP2 After login user name amp password must be validated validation 67 Page Name Show error BF6 A1 SP3 Incase username and password are invalid notify user by showing errors Activity Flow Code Description Login DEG A1 SP4 In case username 8 password are valid login successfully Link to BF6 A1 SP5 After login successfully system link to history page history page Table 30 Login Process Description 3 2 9 Function Update Profile In this function system allows users update profile information Updated information includes e User name e IMEI e Email e Mobile Update Profile Screen Figure 27 Update Profile Screen 68 Page Detail Process Function Specification Function Version Update Profile MTS 10 10 2012 Priority Normal Description User can update profile in case having changes Inputs Profile Update When login successfully input to update information about account User name IMEI Mobile Email of Profile Form Source Profile Update User name IMEI Mobile Email from text field of Profile form Validate Profile Update Item Required Validate Messages IMEI 15 digits T i thiu 15 k tw D li u l cht s Email Email form Dia
51. try catch statement should have the following format try statements catch ExceptionClass e statements 2 7 6 White Space Blank Lines Blank lines improve readability by setting off sections of code that are logically related Two blank lines should always be used in the following circumstances Between sections of a source file Between class and interface definitions One blank line should always be used in the following circumstances Between methods Between the local variables in a method and its first statement Before a block see section 5 1 1 or single line comment e Between logical sections inside a method to improve readability Blank Spaces Blank spaces should be used in the following circumstances A keyword followed by a parenthesis should be separated by a space Example 32 Page while true Note that a blank space should not be used between a method name and its opening parenthesis This helps to distinguish keywords from method calls A blank space should appear after commas in argument lists All binary operators except should be separated from their operands by spaces Blank spaces should never separate unary operators such as unary minus increment and decrement from their operands Example a C 0 az a4 b c d while d S N prints size is foo n The expressions in a for statement should be separated by blank s
52. 07 2012 498 incoming 84946273186 12 07 Gui cho a so cua Nham nhe 11 01 42 2012 499 outgoing 384946273136 12 07 Call mobile 01689914561 11 43 03 2012 500 outgoing 84946273186 12 07 Ak a goi cho thang Tung beo chua 11 43 34 Anat QC Truy cap Facebook MIEN PHI trong 30 ngay tren ui phi de tai ung dung ngay Tu choi QC soan TC qui 1 57 Page Figure 17 SMS History Screen SMS Info Phone 84945709689 2012 12 07 01 56 42 Figure 18 SMS Information Detail Call logs history screen Figure 19 Call logs history screen 58 Page X Call Log Info Id 318 Type Miss Cal Phone Number 0945709689 2012 12 07 01 21 38 sid Figure 20 Call Logs Information Detail Detail Process Function Specification Function No ETS TTA eu 1 0 Function Name Display statistic information Author MTS Date 10 10 2012 Normal Description System will display all tracking information for user Displayed information is divided by date Inputs History date Source Date dropdown list choose date on list 59 Page Outputs List data on chosen date include sms call logs and position Destination Sms amp call logs table of History screen Position Map on History screen Reguires History screen is displayed Map is loaded Pre condition End users login by users role
53. 2 2 CallEogObDserVet t niae da ii 99 4 2 1 3 2 3 CallEogDataSour e ette I INR ERES 99 4 2 1 3 2 4 DataBaseManager ede eerie sas a onse TESS aee Tessen Se 100 4 2 1 3 2 5 CallLogR c eiver x zrni k REN RANE ne miksik n 102 4 2 IA Upload Service o Aa da MPAA eh dv pete 102 4 22 14 1 Glass Diagram orat Pete erra erue pi be Dee at vj dka 102 4 2 1 4 2 Class e EI Ee 103 4 2 1 4 2 1 Enable ConnectionService 2 eer cre tete De entendre 103 4 2 1 4 2 2 UploadDataService ott aiti init esegue 103 4 2 1 4 2 3 Wplodd Tracking se Etre ttt e t me an Aa 104 42 114 24 CSVWltitel ete rr as 104 4 2 1 4 2 5 ISON recle IEEE 105 4 2 1 4 2 6 DatabaseMandger ss tete et INN STEN SEEN Nd dear 106 4 2 1 4 2 7 CallLogBean iere os 107 4 2 1 4 2 8 TrackingBedan ise eerie ote ied ede 107 4 2 1 4 2 9 AlarmManager sse tet ba da teet ett t ett Sm i cad REUS 108 4 2 2 nal H U 109 4 2 2 1 ACCOUNT ite ie E e e n i e Et etes 109 4 2 2 1 1 Class Ala SAMs iet E en t ipte eT RE 109 4 2 2 1 2 Class explanatiOn s er o petente bin eni ie 109 4 2 2 1 2 1 Confirmsite oio Dar 109 4 2 2 1 2 2 AccountDBFUntiO u Ee ipee cp He PP et ege ete 110 4 2 2 1 2 3 EheckLOBI a LE 110 4 2 2 1 2 4 GhangePasswotdDB titer dde E tee 111 4 2 2 1 2 5 pdateACcoUuntDB orn e Gee e e etae eee b eate Arenal 111 4 2 2 1 2 6 Update ACCOUNT url die ares detre as ts attente ta tes state 111 4 2 2 1 2
54. 2 23Z 10 09 1 Detail Process Function Specification Function No Function Version cus ce SMS 8 Call Logs Saving Author MTS Date 10 10 2012 Prio Normal Description System will save sms amp call logs of tracked phone and then upload JSON object to server to synchronize Inputs Type phone number time and content of sms Type phone number time and duration of call Source New sms sent received sms New call make received call Outputs Destination Requires 45 Page Network already turns on 3G Wifi Pre condition Post condition Sms amp call logs are stored in server database Exception In case be failed when upload to server database system will Logs exception Check network to resend Table 15 Message amp Call Logs Saving Function Specification Activity Diagram act Sms amp CallLogs SavingDiagram call logs to temporary database Figure 11 Message and call logs saving 46 Page Activity Auto start application Start remote tracking via website Save messages amp call logs to temporary database Send configuration parameters Update configuration parameters Synchronize to web server Update to server database Description Application is set up on smart phone without let smart phone user one knows So this application has to automatically start and ru
55. 2 Set Up Application to Device 6 1 2 2 1 Prepare for Setting Android device with version 2 3 or over we are testing on Samsung galaxy S2 for this document Odin software version 1 85 You can down load on Tool amp Support folder from disk ES file explorer or root explorer software Version 1 6 2 3 You can down load from https play google com store apps details id com estrongs android pop amp hl en 6 1 2 2 2 Set Up Application e Step 1 Root android device Because there are too much android device so we will take an example device Samsung galaxy S2 you can see instruction video below http www youtube com watch v WYE gpgCUgc After root device you can see super user icon 176 Page WIDGETS Te o Talk Taskc Titanium Backup n Voice Diale WhatsApp You YouTube e Step 2 Install ES file explorer or root explorer after that you can see below icon e Step 3 Get phonetrack apk to device from Disk to SD card or internal memory For example sdcard phonetrack apk Taara 3 39GB used 402 38MB free r w 49 AUB 14 1200 00 WAI A 30 Byles 03 jun 12 17 03 00 rwxr x 426 Bytes Ld b flash image 24 Apr 12 10 49 00 N 24 jul 11 00 53 rnwxr x 76 67K Om RMP v3 1 p e V 48 v N E veremoveboot E 17 May 47 0 C N y PhoneTrack apk 177 Page e Step 4 Open Root explorer or ES file explorer and move phonetrack apk to folder system app
56. 4 2 1 1 2 10 ConfigBean com android mts bean ConfigBean Attribute ak Method Return Parameter Description Type sisi getTimeDuration MEL E etTimeDuation String e timeDuration Table 47 ConfigBean 4 2 1 1 2 11 SMSBean Package com android mts bean SMSBean 86 Page Attribute _ Type Description owes n ee ENE Smstype 03 p Num String TI ms phone ont Method 4 2 1 1 2 12GetMarkerConfig GetMarkerConfig Table 48 SMSBean Method Return Paramete Description Type r 87 Page 4 2 1 2 Mobile Track 4 2 1 2 1 Class diagram class MobileTrack onReceive Intent Context void smsSentObserver SMSSentObserver onBind Intent IBinder onStart int Intent void close void DataBaseManager Context void delete String String void deleteAllDataTable String void getDataCallLog ArrayList lt CallLogBean gt getDataSMS ArrayList lt SMSBesn gt getDataTracking ArrayList lt TrackingBean gt insert ContentValue String void onCreste SQLiteDstabsse void onUpgrade int int SOLiteDatabase void select String Cursor sglCommand String void update String ContentValue String void 44444444 4 4 4 4 4 4444444444 4 4 4 mListeners List lt LocationTrackingListener gt mNetwork NetworkStateBrosdcastReceiver mNetworkLocation Location mPrefListener PreferenceListener m TelephonyManager Teleph
57. 43 5 3 1 4 Check Receive Active Message ue 144 5 3 2 Central Web with Chrome cionado iio 145 5 3 2 1 LOBO Sree coc Diete estere eee e de e IN ede De ees 145 5 3 2 2 Register Screen uiuere emere eee ive eve ia 146 5 3 2 3 Update Account Screen c voee etm tte 150 5 3 2 4 Danger Area Screen iii een KUKA Ee eran Kale Ri nie hen 155 5 3 2 5 History SChEOM eee SSES Seed aee den ete e oe e dae ee o AANER 157 5 3 2 6 Admin Sereen sms teeth bete mete et e nr ass 160 5 4 Test S mmary lero ee 163 5 41 Test Exe ution SUMMAFY ste ide EN aet nee hab Kid vs SA Rai ensis pedea 163 5 4 2 Test Results ssi a rta oti tati a ee summaa 163 5 4 2 1 Summary of Incident Reports Raised During Project 163 5 4 3 A EO ER RE ER TE 164 5 4 3 1 System Test Success Criteria Error Bookmark not defined 5 4 3 2 Concl siOn ue err ttr KAN avaa a RR E de Error Bookmark not defined Software User s Manual ttt eie he i eee en seen E En gen nece oe pn e man 164 11 Page VII 6 1 Installation G ide 2 sm e keh t s 164 6 1 1 Website stne AAA e ere e e vue 164 6 1 1 1 Setting Up the Environment at Server Side ccconononoconnnonononononnnnnnnonnnannnannnnnoncnnannnnnononons 164 61 L2 DeploymentatsServerSide 5 ertet ees ceterae mak 165 6 1 1 3 Setting Up the Environment at Client Side anno ncnnonananonanons 166 6 1 2 Get lege EE 166 6 1 2 1 Bui
58. 7 Phipsalajax dbinfo cett teeth Sa ntt 112 4 22 2 Danger Atea elana kA RU e AISA le lei en 112 GE E KEE e EEN ET EU EE 112 42 222 E e EE EE Lg e E 113 4 2 2 2 2 1 EI 113 4 2 2 2 2 2 Phpsglajax genxmlMarkers sessi 113 4 2 2 2 2 3 phpsalinfo aC COW i ense e em AR n dam tete 113 4 2 2 2 2 4 phipsalajax dbinfo 5 ote e e he er RE dee 114 4 2 2 3 SEMI CE uiia ien eiu ue te eo e AI E Patate dt ide mer unten ES EE 115 422 3 1 Glass diagram ab ee e NINAS Saat ende eem 115 42 2 3 2 Class explanation a rt ta eI DO E Re 115 4 2 2 3 2 1 Handle upload atate ra eee ete tete SNE ENEE e 115 4 2 2 3 2 2 DownLoadParameter sisi 115 4 2 2 3 2 3 dl Gel EIER Ren Le E 116 4 2 2 3 2 4 IMportESV ics ener ete TA ee TP reg tate EI AM Ee RA YS EAN vie P TES 116 E ES A Eo AAA TA ea tu t AA e aan Aa 117 4 2 2 44 1 Class diagrami sivi ii A S nr RUINIS 117 4 2 2 4 2 Class explanationizs ie Re remote cs 117 4 2 2 4 2 1 Phpsaqlajax genxtml3 utet tetto NN TR N SIAN desde Mann 117 4 2 2 4 2 2 Phpsqalajax_genxmlAllLocation nnne 118 4 2 2 4 2 3 A en nde dei tede eite tes 118 4 2 2 4 2 4 GenCallkOB sms ee tente tetti ist ebat i Res 118 4 2 2 4 2 5 phipsdlajax el Un DE 119 4 3 SEQUENCE Diagram ERREUR 119 4 3 1 Mobile tette aree Taa ate re KA ete P e ed iin 119 ASUMA AE NE RR ERES Ye ee O O re ugue 119 431 2 MobileTrack ee RI rs 121 431327 Camilo A t EE Pe MT 122 43 14 UbloadD ta a
59. Area Sting S 06 tableParameters Sting 07 tablePosition Sting _08 tableSms ng 09 username Sting TI O Method 4 2 2 2 Danger Area Table 81 Phpsglajax dbinfo 4 2 2 2 1 Class diagram parseToXMLIString xmlStr password String tableCallLog String eren eg IR tableParameters String tablePosition String N tableSms String username String comment String imei String latitude String longitude String name Sting radius String tag String Figure 40 DangerArea Class Diagram 112 Page 4 2 2 2 2 Class explanation 4 2 2 2 2 1 GenParameter Attribute Description Ul in i string Method No Name Return Parameter Description ER Z oa W Type Table 82 GenParameter 4 2 2 2 2 2 Phpsglajax genxmlMarkers phpsglajax genxmlMarkers Attribute Method Return Parameter Description Table 83 Phpsglajax genxmlMarkers 4 2 2 2 2 3 phpsglinfo addrow phpsglinfo addrow 113 Page 03 latitude Sting 04 longitude String 05 name String _06 radius String O7jiag String Method 4 2 2 2 2 4 phpsqlajax_dbinfo phpsglajax dbinfo Attribute Attribute No Name Type Description 01 comment String 02 j imi String Table 84 Phpsqlinfo_addrow 01 database String _02 password String 03 tableAccount Sting _04 tableCalllog String 05 tableDange
60. Gb Fpt University MINISTRY OF EDUCATION AND TRAINING DAI HOC FPT FPT UNIVERSITY Capstone Project Document Mobile Tracking System Mobile Tracking System Vu Thuy Nh m 00875 Nguy n Trung Ki n 00801 Group EEN Mabe Ja Ho ng Giang 00848 Tr n Phuong Th o 00943 Pham Tung Bach 01389 Supervisor Mr Nguyen Tat Trung Capstone MTS Project code Hanoi 12 2012 Record of Changes Date Change Item Description By Version 10 09 2012 Create the document BachPT 0 1 17 09 2012 Proposal Update figure NhamVT ThaoTP 0 2 21 09 2012 Software Project Plan Add new NhamVT BachPT 0 3 18 10 2012 Software Design Add new ThaoTP 0 4 05 12 2012 Testing Add new BachPT 0 5 20 12 2012 All Update comment NhamVT 0 6 Table of Contents Table Of Contents ERR 1 Definitions and Acronvms issus 14 k Chapter Project Introduction cete rr saa a AA RN aln tetes oia pasen ie ERER 15 11 Project information cea eate ctae re etudes nettes enr Dn ed ner id DN Ede 15 1 2 PUD OS IUS EET II UIDI DIDI DLL DIUI A TE NI 15 1 3 Tele le EE 15 1 4 Literature Review of Existing Systems inner 16 1 5 QU Proposal DEUM t 17 By implementing a helpful tool our product will have the following advantage 17 For smart phone our product will have core functions below 17 For web base system our product will hav
61. MR rp 55 Figure 15 Update Configuration Parameter Diagram ssssssssssssrressssssrrerrerssssserennrssssenereennssssesereennssno 55 3 2 6 Function Display statistic information 56 Position history Screen totes hte eee kie ik n NANA retiens 56 Figure 16 Position History Screen 57 4 Page SMS history screen SMS 2012 12 07 ID Type Phone Number Time Content 2012 495 incoming 384945709639 12 07 Hay qua 01 56 42 2012 496 incoming 84945709639 12 07 mtjg atg jatjg ajg ajg atpg akgajgajpg ajtgajajamaja5Sm agj 01 57 42 obe QC Truy cap Facebook MIEN PHI trong 30 ngay tren ul T n ep t phi de tai ung dung ngay Tu choi QC soan TC gui 180 2012 498 incoming 84946273186 12 07 Gui cho a so cua Nham nhe 11 01 42 2012 499 outgoing 84946273186 12 07 Call mobile 01689914561 11 43 03 2012 500 outgoing 84946273186 12 07 Ak a goi cho thang Tung beo chua 11 43 34 ana AA Sa 57 AUS P 58 Figure 18 SMS Information Detail a a a aa aa a aa a aa ana aa naa ana inneren nennen ns 58 Call logs history screeni nde eere MAN A ee dt be Pe ad ee amu 58 Figure 19 lt Call logs history screen eiit rane ttai tiae ether hh ae e kh GEO to hh d aee th eee hd aee ades 58 Figure 20 Call Logs Information Detail sise 59 Detail Process etario Ade inn 59 5 Page Activity Diagram act Display statistic information consider User consider System e
62. MSSentObserver Package com android mts sms SMSSentObserver 81 Page Attribute Type Description 01 moonted Context o 02 SMSDataSource Method Return Parameter Description Handler ctx andler handler smsSourc Context ctx SMSDataSource smsSource Table 40 SMSSentObserver 4 2 1 1 2 4 EnableConnectionService Package com android mts service Class EnableConnectionService Attribute No Name X Description 01 URL g Mi configData ConfigDataSource Method Return Parameter Description nt artid Table 41 EnableConnectionService 82 Page 4 2 1 1 2 5 DataBaseManager com android mts db DataBaseManager Attribute No Name Type Description Context A SQLiteDatapase Method No Name Return Parameter Description Type 01 DataBaseManager Context context Constructor context takes and keeps a reference of the passed context in order to access to the application assets and resources with the results _03 getDataTracking Array table sms Ke deleteAllDataTable String 0 tableName insert String table ContentValues values delete String table String Get data from table call log ST values Lom where where update String table table ContentValues values values where Ed ali guery 83 Page String where sglCommand String command A db rei SOLiteDatabase 13 mea vuan MU zlih db int oldVersion
63. ProviderEnabled String void onStatusChenged String void deleteAll void getNextOutput Cursor String getOutputFooter String getOutputHeader String query int Cursor query String Cursor query int String Cursor TracxDataHelper Context TrackDatsHelper IFormatter Context writeEntry TrackerEntry void writeEntry float Location void writeEntry String String void DEE GRUB GR GR GR GR 4 4 delete String String Uri int getType Uri void insert ContentValues Uri Uri onCreste boolean query String String String String Uri Cursor update String String Uri void Figure 36 Mobile Track Class Diagram 4 2 1 2 2 Class explanation 4 2 1 2 2 1 NetworkStateBroadcastReceiver Package com android mts mbtrack Class NetworkStateBroadcastReceiver Attribute 88 Page Method Return Parameter Description Table 50 NetworkStateBroadcastReceiver 4 2 1 2 2 2 BootUpReceiver BootUpReceiver B Return Parameter Description Type Table 51 BootUpReceiver 4 2 1 2 2 3 PreferenceListener com android mts mbtrack PreferenceListener Attribute Method Return Parameter Descriptio Type n 01 onSharedPreference Changed SharedPreferences k sharedPreferences Str Table 52 PreferenceListener 89 Page 4 2 1 2 2 4 SMSSentService SMSSentService Attribute No Name Type Description smsSentObserver SMSSentObserver
64. Sting 06 mType EntyType S Method Name Return Parameter Description Typ 01 buildCreationString builder Teater N Cursor cursor Entry 03 createEntry Tracker Tag msg Create a String tag String msg Entry rackerEntry from a log msg 04 createEntry Tracker Loc distFrom Create a Location loc float Entry NetLocation rackerEntry distFromNetLocation from a Location 05 getAsContentValues Content Values getDistFromNetLocation Float 7 getLocation Location getLogMsg Sting 7 Li o getTag 0 11 getType Entry Type 93 Page Package Class Attribute Method setLogMsg String msg 12 poo p E setDistFromNetLocation float WM n N distFromNetL ocation NetLocation de RN o ERN String timestamp location 16 TrackerEntry Tag type imu String tag EntryType type TrackerEntry Location loc 18 getNullableFloat Cursor cursor string colName Table 57 TrackerEntry 4 2 1 2 2 9 TrackDataHelper com android mts mbtrack TrackerProvider No Name Description EOS oe ecg 02 mContext Context O No Name t Parameter Description TrackDataHelper m Context Create formatter 02 TrackDataHelper Context NE LIN UND ur instance TI 1 tar ue tracker entries 04 getNextOutput Cursor String cursor Helper method cursor which converts row referenced by given cursor to a string output 05
65. Test Objective Verify the following Navigation through the target of test properly reflects business functions and reguirements including window to window field to field and use of access methods tab keys mouse movements accelerator keys Window objects and characteristics such as menus size position state and focus conform to standards 138 Page Technigue Create or modify tests for each window to verify proper navigation and object states for each application window and objects Completion Criteria Each window successfully verified to remain consistent with benchmark version or within acceptable standard Saa else Not all properties for custom and third party objects can be accessed Table 109 User Interface Testing 5 2 1 3 Performance Testing Performance profiling is a performance test in which response times transaction rates and other time sensitive reguirements are measured and evaluated The goal of Performance Profiling is to verify performance reguirements have been achieved Performance profiling is implemented and executed to profile and tune a target of test s performance behaviors as a function of conditions such as workload or hardware configurations Verify performance behaviors for designated transactions or Test Objective business functions under the following conditions normal anticipated workload anticipated worst case workload Use Test Procedures developed for Function or Bu
66. Upload Data Seguence Description 124 Page 4 3 1 5 Danger Track sd Danger Track O O O MobileTrackService Location TrackingListener EnableConnectionServios getDangerousLocstions 7 onLocationChanged Location location i gt distanceToDangerous getPhoneNumber T H i sendTextMessage destinationAddress null SMS CONTENT null null H Method Name Description No 01 getDangerousLocations Description get list of danger positions Parameter N A Return N A 02 onLocationChanged Location location Description Process when location changed Parameter location Return N A 03 getPhoneNumber Description get phone number of supervisor Return N A 04 sendTextMessage DestinationAddress Description Send sms to supervisor null SMS CONTENT null null Parameter N A Return N A Table 99 Danger Track Seguence Description 125 Page 4 3 2 Server 4 3 2 1 Danger Area Seguence sd Danger Area Seguence IO O O 6 End User danger res genParameter phpsalinfo addrow phpsglajax genxmlMarkers phpsalinfo addrow phpsalajax dbinfo E LI H v ny v 3 1 H R n link to danger area page display config parameter H oonnect to DB 7 return config parameter connect to DB 1 connect to DB i return danger ares data update to DB connec to DB Figure 47 Danger Area Sequence Diagram No Method Name Description 01 Click to History Tab on Menu
67. a message to another saved on save in number database on database 3 Send a message from another device after send number to this device or receive 3 Check database on device messages 2 All sending and receiving numbers are right A9 Send message 1 Setup and turn on 3G and GPS 1 After customize Pass data to server 2 Set configure time on web site time Data will be after customize 1 or 2 minutes sent to server time 3 Check data on server database 2 Data appear and compare them with data on correctly on device server database 4 All sending and receiving numbers are right A10 Get Call log 1 Setup and turn on 3G 1 Data will be Pass information and 2 Call to another number saved on save in 3 Call from another number to database on database this number of device device after send 3 Check database on device or receive messages 2 Going Coming and missing call have saved on database of device 142 Page A11 Send call log data to server after customize time 1 Setup and turn on 3G and GPS 2 Set configuration time on web site 1 or 2 minutes 3 Check data on server database and compare them with data on device 1 After customize time Data will be sent to server 2 Data appear correctly on server database Going Coming and missing call have saved on database of server Pass Table 112 3G amp GPS Are Turn
68. age 13 characters 2 Try enter 13 characters or less See error or less example register jpg 1234567890123 C19 Check IMEI text 1 Go to Web site You cannot enter Pass box with enter http giangvh007 zxg net and click 16 characters 16 characters on Create an account link or more 2 Try enter 16 characters or more example 1234567890123456 C20 Check IMEI text 1 Go to Web site There is no Pass box with enter http giangvh007 zxg net and click message 15 characters on Create an account link or more 2 Try enter 15 characters example 123456789012345 148 Page C21 check enter 1 Go to Web site you just can input Pass characters http giangvh007 zxg net number tungbach to and click on Create an account IMEI textbox link 2 Try enter some characters to IMEI textbox fx tungbach123 C22 check enter 1 Go to Web site you just can input Pass characters to http giangvh007 zxg net and click number Mobile textbox on Create an account link 2 Try enter character to Mobile textbox fx bach123 C23 Check form for 1 Go to Web site Display an error Pass Email textbox http giangvh007 zxq net and click message on Create an account link See error 2 Try enter wrong form of an email register jpg fx bach99 yaho om C24 Check Register 1 Go to Web site 1 Data will be Pass with right data http giangvh007 zxg net saved in 2 Click on Create an account database 3 Fill
69. an log in by this account Exception Incase be failed cause by user name or imei or email existed show message User name is existed Imei is existed Email is existed In case be failed when save to server database system will 63 Page Logs exception Check network to resave Table 27 Register Function Specification Activity Diagram Figure 24 Register Activity Diagram Name Fill out A1 UP When using website to remote track users have to registration 1 register an account To register users must enter form profile information to registration form Activity Code Description Validate A1 SP After registering information is validated follow input Item Reguired Type IMEI Username string 64 Page Activity Flow Code Description Name Mobile sting o stno O Notify error messages Check WW If validation fails system will immediately notify problems to user and remark to user re enters information 1 SP Check existence of account In case account is existed account show error message and redirect to Login page existence Save to DB 3 4 A A1 SP Save all information of account to database when Redirect to BF5 A1 SP Incase account already exists for the given email BF5 A1 SP User is registered Success messages will be show to successful 7 user to authenticate registration Table 28 Register Process Description 3 2 8 Func
70. are tracked secretly position real time on map when tracked phone is moving Users also can view all saved Start remote BF2 A2 UP2 When staring application users can start remote tracking via tracking most phone activities such as positions website messages and call logs On website users can track 53 Page Activity Flow Code Description Get current position Check BF2 dangerous area AAA A2 SP3 By using GPS satellite this application can get phone s current position When moving position is also updated A2 SP4 For each position system will check dangerous following list of dangerous areas List of dangerous areas are built by users Users can define some dangerous areas If tracked phone moves in danger system returns true and call warning handing A2 SP5 When tracked phone is in danger system will immediately send alert messages to users Messages may include dangerous location information Receive alert BEZ A2 UP6 Users will receive alert messages immediately after messages system has just send Receiving alert messages can help users have a best solution to protect relatives or own phone Table 22 Danger Tracking Process Description Send alert messages 3 2 5 Function Update configuration parameter In this function when mobile receive configuration sms from end user system will auto update newest configuration parameter which end user has changed Syntax o
71. ave amp close button or delete button if you want to delete this point 186 Page m UPDATE ACCOUNT Y HISTORY H DANGER AREA CONTACT US DOWNLOAD 6 2 2 10 Set Time Upload Data e Step 1 Login and move to danger area tab e Step 2 You set a time on time upload textbox e Step 3 click ok button a message box will be showed DANGER AREA ege Last update 0121203111905 187 Page 6 2 3 Admin Guide 6 2 3 1 View All Information of Users s Step 1 Login with admin account after that admin screen will be showed You can see all information of users username password role IMEI phone number email 111111111111111 090111111111 6 2 3 2 Update Information of Users or Delete Users e Step 1 Login with admin account after that admin screen will be showed e Step 2 click on a row after that information box will be showed Account Info you can change role imei mobile email whte1590tack yahoo com you can click delete for delete user or reset password for reset password for users after you change click update for change Account Info Re iue I ooo 359199020254432 Mobile 01668862368 Email bachpt01389 fpt edu vn update l delete resetPassword J e Step 3 Admin can change role imei phone number email 188 Page 6 2 4 User Enables Update For Device by Send
72. ble 32 Update Profile Activity Description Incase data inputs are invalid notify user by showing errors Select A1 SP4 Select Update to update changed account information Update button A1 UP5 A1 SP6 A1 UP7 3 2 10 Function Manage Account In this function system allows admin manage account information Account managed information includes e User name e Role e IMEL e Mobile 71 Page e Email Manage Account Screen iD User Hame Password Role Imei Phone Number Email 441411111111111 a admn1234 e10adc39490a598bbe56e0571201583e 1 090999999999 admin 1234Gbyahoo com vn J 4 ngvyenkien e10adc39480858abbe56e0571201583e 2 0912862752 whke1950black byahoo com 5 kyenonine e10adc39480058abbe56e0571201583e 2 0912862751 whhe1980black yahoo com 8 a5bdsbsc91b42081760cbBe72a20674b 2 gangyh002 yahoo comvn 2 090333333333 Figure 29 Update account screen Account Info 090111111111 giangvh001 yahoo com vn Figure 30 Account Information Detail Detail Process Function Specification Function No Function Version 72 Page Manage Account MTS 10 10 2012 Normal Description System allows admin update account information Inputs Admin input User name Role IMEI Mobile Email into Account Management popup form Source Password and Role from text fields of Account Management popup form Outputs Account informat
73. cationTrackingListener mi B 91 Page onStatusChanged String provider int status Bundle extras onProviderEnable String provider Update to provider tracking file m Provider status Update to extras tracking file Method Return Parameter Description Type onLocationChanged Location location Detail of location location update to tracking file onProviderDisabled String provider tracking file Table 55 LocationTrackingListener 4 2 1 2 2 7 TrackerProvider com android mts mbtrack TrackerProvider Attribute No Name Type Description mOpenHelper DataBaseManager Z o o o o 05 query Uri uri String Cursor uri projection projection String selection selection String selectionArgs selectionArgs String sortOrder sortOrder Method Return Parameter Description Type 01 delete Uri uri String Int uri selection selection String selectionArgs selectionArgs 02 oncreate JTF getType Uri uri String ui aa 04 insert Uri Uri uri values uri ContentValues values ContentValues values selectionArgs String selection String 92 Page K selectionArgs EE Table 56 TrackerProvider 4 2 1 2 2 8 TrackerEntry com android mts mbtrack TrackerEntry Attribute No Name Type Description 01 mDistFromNetLocation Float 02 mLocation Locaton 03 mLogMsg ng 04 mTag L im 05 mTimestamp
74. chi email kh ng hop l User name From 6 to 12 characters T ithi u 6 ki tu Cannot input special T ida 12 ki tu characters Outputs View profile to update Destination Profile screen Reguires 69 Page Profile screen is displayed with data if login successfully Pre condition Profile Update End users login by users role Post condition Profile Updated Profile is updated to server database Exception In case be failed when upload to server database system will Logs exception Check network to resend Table 31 Update Profile Function Specification Activities Diagram act UpdateProfile Login to system Load account wm Figure 28 Update Profile Activity Diagram 70 Page A2 UP1 Users must have login to system by registered account Select BF7 A1 SP2 After login successfully Select Update Profile link on Update menu of home page Profile link Load account informatio n to display Profile information are loaded when user click on Update Profile on home page menu Profile information includes User name IMEI Mobile Email Select Change pwd button Validate input Select Change pwd to change current password When input changed data system will validate information Notify error message Update to BF7 A1 UP8 Update all information of account to database after click EM Ta
75. click on start or end 2 After click on start or end point then start or end point will be showed on map if there is no data in database then SMS table will show Khong co du lieu cho ngay C83 Check List of 1 Go to Web site 1 All danger Pass danger area http giangvh007 zxq net points will be 2 Login success showed 3 click on random point of list of 2 Danger point danger area will be showed if there is no data in database then SMS table will show Khong co du lieu cho ngay C84 Check Map 1 Go to Web site 1 All danger Pass display http giangvh007 zxq net points will be 2 Login success showed 3 click on random point of list of 2 danger point danger area will be showed 4 Click on marker point on map 3 After click on a marker point on map information box will be showed Table 119 Website on Chrome History Screen 159 Page 5 3 2 6 Admin Screen od ode Website on Chrome Admin Screen D e Procea pected O D n De ejite C85 Check data 1 Go to Web site Data show Pass show http giangvh007 zxg net correctly with correctly 2 Login success by Admin database account C86 Check pop up 1 Go to Web site Pop up will be Pass after click on http giangvh007 zxg net showed a row 2 Login success by Admin see pop up jpg account 3 Click on a row C87 Check ID and 1 Go to Web site You cannot Pass username http giangvh007 zxg net change id and
76. d be either actual size or scaled egually Table 110 Performance Testing 5 2 2 Test Environment Test client configuration a Hardware e Samsung galaxy S2 e Intel core i3 2310M 2 1Ghz b Software e Microsoft SQL 2008 R2 e OTrace e Jmeteror Open STA e Chrome 23 and Firefox 16 e Firebug e Simulator of android 5 3 Test cases 5 3 1 Application 5 3 1 1 Set Up Module Code Application Set Up Test Case Ja Description Test Case Procedure Expected Output 140 Page A1 Display 1 Root Android device Login by 1 There is no Pass Admin account icon of app on all 2 Set up application screens 3 Unroot Android device and 2 There is no Login by normal account app on setting menu A2 Confirm after 1 Root Android device Login by 1 Device will Untested setup Admin account send to serve a 2 Set up application confirmation 3 Login by normal account include 4 Turn on 3G and GPS IMEI of device 5 Access to web for checking Current location A3 Check 1 Root Android device Login by 1 There is nota Untested unmemorable Admin account normal way to 2 Set up application remove this 3 Login by normal account application 4 Find some normal ways to remove this application ex find icon and remove find it on setting menu A4 Check 1 After set up successfully on 1 You can see it Pass automatically device then reset device running with 3 after reset 2
77. d cannot be removed in the usual way Application is started automatically as soon as the phone is turned on Application cans automatically active 3G wifi of mobile Application does not have a screen interface runs fully implicit Endusers can supervise most of mobile activities via web server anytime For smart phone our product will have core functions below Records movement locations Saves sms and call logs Synchronizes all information to website with internet access Alerts users in case their tracked mobile crosses the locations boundaries or in dangerous areas For web base system our product will have core functions below Allows register and login to system Let s users secretly see tracking history of the tracked mobile location saved sms and call logs Allows setting configuration parameters Manage account of users 17 Page Functions Proposal Functions GPS Tracking SMS Tracker MTS Pro Agent Record movement location Y Y Y Save messages and call logs Y Y Synchronize all information to Y Y website with internet access to remote tracking Alert users in case their tracked 4 Y mobile crosses the locations boundaries or in dangerous areas Setting configuration Y Y parameters Run implicit to ensure Y confidentiality Show history of tracked mobile Y Y on web Manage account of users Y Table 3 Functions proposal 18 Page
78. date button Display a error message mobile exist admin jpg Pass C93 IMEI text box 1 Go to Web site http giangvh007 zxq net Login success by Admin account Click on a row 2 Try enter 13 characters or less example 1234567890123 Display an error message Pass C94 IMEI text box 1 Go to Web site http giangvh007 zxg net with admin account 2 Click on a row 3 After pop up was showed 2 Try enter 14 characters or more example on IMEI box 1234567890123 5 click update button Display an error message Fail 161 Page C95 IMEI text box 1 Go to Web site http giangvh007 zxg net Login success by Admin account Click on a row 2 Try enter 16 characters or more example 1234567890123456 You cannot enter 16 characters Pass C96 IMEI text box 1 Go to Web site http giangvh007 zxg net Login success by Admin account Click on a row 2 Try enter 15 characters or morehttp giangvh007 zxq net example 123456789012345 There is no message Pass C97 Mobile textbox 1 Go to Web site http giangvh007 zxq net Login success by Admin account Click on a row 2 Try enter character fxtungbach123 You just can input number Pass C98 Email textbox 1 Go to Web site http giangvh007 zxg net Login success by Admin account Click on a row 2 Try enter wrong form of an email to email textbox fx tungbach99 yaho c
79. e 4 tick on Delete Data Call Log deleted on Delete Data SMS Delete Data database Tracking 5 chose a day what has data of GPS by click on calendar icon 6 Click on update button 152 Page C47 Check min 1 Go to Web site Display an error Pass length of old http giangvh007 zxg net and message Password click on update account tab please see textbox 2 Enter 5 characters to old image password textbox error update2 jpg example 12345 C48 Check enter 1 Go to Web site You cannot enter Pass special http giangvh007 zxq net and them You just characters of click on update account tab can enter number old Password 2 Try enter some special and normal textbox characters to old password characters textbox 8 by normal way For ex tungbach123 C49 Check min 1 Go to Web site Display an error Pass length of New http giangvh007 zxg net and message Password click on update account tab please see textbox 2 Enter 5 characters to new image password textbox example error update2 jpg 12345 C50 Check max 1 Go to Web site Just can input Pass length of New http giangvh007 zxg net and max 12 Password click on update account tab characters textbox 2 Try enter 13 characters or more to new password textbox example 12345567890123 C51 Check enter 1 Go to Web site You cannot enter Pass special http giangvh007 zxg net and click them You just characters of on update account tab can enter numbe
80. e core functions below 17 Functions Proposal E 18 Figure 3 Overall of RTS miniring tesa ia 19 II Chapter Il Software Project Management Plan ss 19 2 1 Problemi Le ET GA A zi erprobt NE ei o Ne iet E E 19 2 1 1 Core Business Case and Approach sisi 19 2 1 2 Project milestones and deliverables 4 19 2 1 3 Project Standard Objectives sisi 20 2 2 Project Organizer tbe e tie ete n a t cuts xe teste EEN EE tune 21 2 2 1 Software Process Model ttt etie re Lett e a Te ee ee De reato 21 Figure 4 Iterative Software Process Model sise 21 2 2 2 Role and Responsibilities iii 21 Figure 5 Project Team Members Ae ete secet aa 22 2 3 Project Management Plan ie e ee eve NE Eis 22 Figure 6 Project Management Plan 22 2 4 Hardware and Softwares o Het in N hand ette deett ua dasta 23 2 4 1 Hardware requirement Ete ce 23 2 4 2 Software regulrement 23 2 5 Success Crit rld EE 23 2 6 Risk Management vsta ote e RAR tete etn ttu meten anis ed mankan 24 2 7 Coding Convention for Java een aa aa eaa naa ansa ases saa 25 2 7 1 File Name eebe ed a ee teca ee Ass ah o RR ss 25 2 7 2 File Organization sasae IA AA Tan dd then iste 26 2 7 3 IMASNTatiON ssa ara 26 2 7 4 DeclatatiOnS coiere pete e Pipe eut ge dete AN ne i e ey neta 27 Number per Lig reo rete a boe deem ie nb organa donnons 27 A A dee eege 27 Initialization mc M 28 Class and Interface Declarations
81. e loosely coupled that chances on some module will not affect others 76 Page 3 3 6 3 3 7 Logging e All the errors should be logged supporting for bug fixing and maintenance e All strange or sensitive situations should also be logged Email e The system must provide an email address to receive customer feedback or send emails Portability Website and smart phone can be used by any people with a browser and an Internet connection Performance Response time under 10 seconds IV Chapter IV Software Architecture Design 4 1 System Architecture Design Client DB CiINDROID SOURCE Figure 32 System Overview 77 Page 4 1 1 Mobile Presentation Business mbtrack Figure 33 Mobile Architecture Design ID Package Name Description Notes Contains Bean Classes Contains Utility Classes 03 Common Service Contains Service Classes _04 Business mbtrack Contains SMSTracking Classes L I 06 Business callog Contains Call Logs Tracking Classes _07 Business danger ll I Data Access DB Contains Database Interaction Classes Table 36 Mobile Packages 78 Page 4 1 2 Server resentation Account Admin Image Marker Jata Access Admin History Login Marker a Update Register Service Account Database Common Figure 34 Server Architecture Design ID Package Name Description Common CSS
82. ective on successful product V V V VY V Good looking and friendly interface with smart and simple design Good performance Value and stable Convenience and easy to set up Good server for backup data Perspective on learning gt gt gt gt gt Understanding the primary of process of making software Apply this process for capstone project Research and apply technologies what have taught at university For example JAVA SMARTDRAW ENTERPRISE ARCHITECT MYSOL Learn how to use new technologies for example JAVA ON ANDROID PHP and JSON Apply technologies to professional process what has suggested from masters supervisor Training process of project management with team leader Leader always store knowledge for getting necessary skills She or he can use tools for management control Capture the importance of project guality management and can use tools technigues for guality control Designer gets keys for making friendly smart and simple interfaces Perspective on project management 23 Page gt Keep deadline Achieve all guality reguirement without overtime mprove cohesion of members in team 2 6 Poor experience of management makes plan late 2 Poor experience of evaluation make miss scope Bad communication breakdown can make changing time work and delay plan Risk Management There is always a group with 2 or three members for example 2 main coders K
83. ed On 5 3 1 3 Check Danger Areas Module Code Test Case Description Check when Test Case Procedure 1 Setup and turn on 3G and GPS Application Check Danger Areas Expected Output 1 There is no Result device doesn t on device alert on number go to 2 Set up dangerous point time phone what have dangerous distance on website registered area 3 Stand at location outside this area A13 Check when go 1 Setup and turn on 3G and GPS 1 Thereisno Pass to dangerous area on device 1 Set up dangerous point distance on website 2 Check data on database of device 3 Stand at location inside this area with time less customized time on website alert on number phone what have registered 143 Page A14 Check when go 1 Setup and turn on 3G and GPS 1 There is an Pass to 2 different on device alert on number dangerous area 2 Set up some of dangerous phone what have point time distance on website registered 3 Check data on database of 2 There is device another alert to 4 Stand at location inside this number phone area with customized time on what have website registered 5 Go and stand at another dangerous area with customized time on website for this area A15 Check when go 1 Setup and turn on 3G and GPS 1 There is an one dangerous area twice or more on device 2 Set up some of dangerous poin
84. ep 4 Type in Password edit box e Step 5 Click Sign in button and History screen will be showed 6 2 1 2 View Profile e Step 1 Login andClick Update Account Tab Update screen will be showed 6 2 1 3 View Position SMS Call Logs of Current Day o Step 1 Login and History screen will be showed 181 Page 6 2 1 4 View Danger Area Screen e Step1 login and Click Danger Area Tab and Danger Area screen will be showed 6 2 2 Form Guide 6 2 2 1 Register a New Account e Step 1 Go to login Screen and click on Create an account Username Password click here e Step 2 After Register was showed you need to enter all information User name field password confirm password must be from 6 to 12 characters IMEI must be exacily 15 characters EMAIL must be right form of email Number phone just is a number 182 Page 6 2 2 2 Forgot Password e Step 1 Goto login Screen and click on Forgot password Username 6 2 2 3 User s Update Information Step 1 Login and move to update account tab Step 2 You can update IMEI phone number email after that you click update button UPDATE ACCOUNT HSTORY DANGER AREA CONTACT US DOWNLOAD 183 Page 6 2 2 4 Delete Tracking SMS and Call Logs Data e Step 1 Login and move to update account tab Step 2 You click on calendar icon choose a day and Step 3 Click on radio button of Track or SMS or Call Logs or all three rad
85. er et dt 123 43 15 Danger Track tet teat cells ded tende etus 125 4 3 2 Sil qu ES 126 4 3 2 1 Danger Area Seouence aa aan aa aa aa aa ia a saisis ia Aaa aa aa aa saisis assa sun 126 43 2 2 A Ns NN EN Mis dia mets 127 4 3 2 3 A ASTALA ie eeu idee telae re ee Quee ee 128 43 24 Updater c ss IE NE eb ehe pede ab dii 129 43 207 SNOW HISTO EE 130 43 26 Download Uplo ad s suuta va RANA GANE reatu ae dee tia 131 4 4 Database EEA AO OR TNE 132 4 4 1 Mobiles E 132 4 4 2 e M 134 Chapter V Testing oet eee deed 135 10 Page VI 5 1 Requirements for Test s satiri Enak iii 135 5 11 Feature to be tested a a te n De dde cse S e eae 135 511 AppliGation nus ro ect oe debut eret de 135 LEMMA I II IE 136 5 1 2 Feature not to be tested c ee c etre nr De te case nte e ae e n 137 5 2 Test Strategy inti EE Anaa 137 5 2 1 Test Types o See snd hho ne nilo E das esd dj ese eee 137 5 2 1 1 Function Testing ce tee ee eee soled re eda NAM vsem 137 5 2 12 User Interface Testing eere oes Rass ede heed eH 138 521 3 Performance Testing ads ds ett tb tete N Ain daa et 139 5 2 2 Test Erivirontments tn cL Ree ne nor bad atq t ER T ns 140 5 3 SAA CER 140 5 3 1 Application zi niet eter et tte e a NSS tte n deh tes 140 E WE el 8 e H 140 5 3 1 2 Running with 3G amp GPS Are Turned On in 141 5 3 1 3 Check Danger Areas rte e POR REPE 1
86. er to synchronize zi Auto incremented String Position data Latitude Long Table 10 Position Data Type JSON Data Standard id imeti time longitude latitude Jud mer time longitude latitude JSON Data Sample 1 012233423456098 2012 10 18T00 25 18Z 21 0409 105 7981 2 012233423456098 2012 10 18T00 12 23Z 34 0908 102 2341 40 Page Detail Process Function Specification Function No BF1A1 Function Version Function Name Position Saving Author Date 10 10 2012 Prio Normal Description System will use GPS to get current position of tracked phone and then upload JSON object to server to synchronize Inputs Longitude and latitude of position Source Longitude and latitude of position by Android API Outputs N A Destination N A Reguires Network already turns on 3G Wifi Pre condition GPS is available Post condition Positions are stored in server database 41 Page Exception In case be failed when upload to server database system will Logs exception Check network to resend Table 11 Position Saving Function Specification Activity Diagram act PositionSavingDiagram Figure 10 Position Saving Diagram 42 Page Activity S Code Description Auto start A1 SP1 Application is set up on smart phone without let smart phone user one k
87. execution 3 coverage At least 95 executed system test cases have to be passed More 4 than 95 test successful coverage 5 100 high priority test cases in scope are passed 6 Only Cosmetic defects can be accepted Table 123 System Test Success Criteria VI Chapter VI Software User s Manual 6 1 Installation Guide 6 1 1 Website 6 1 1 1 Setting Up the Environment at Server Side Sign up an account for www zymmic com You can see instruction file zymic signup docx on folder Tool amp Support from disk FILEZILLA software version 3 6 0 2 You can get from Disk on folder Tool amp Support Package for deployment you can get it from disk on folder Web Create a database on http www zymic com with your host name username 164 Page And name of database yourhostname sever Our example giangvh007 zxg sever and you must see database design for create table column and type of data You can see instruction link http www youtube com watch v wJr HOt9NkA 6 1 1 2 Deployment at Server Side e Step 1 Connect to file manager by FileZilla Open FileZilla software and o You can post your host to Host field fx http giangvh007 zxg net o You enter your username to username field fx giangvh007 zxq user o Password fx giang156 o Post fx 21 After that you click Quickconnect button You should use your account for connect to host OPD e pose TA
88. f configuration sms ON Detail Process Function Specification Function Version Update configuration parameter MTS 10 10 2012 Normal Description When mobile receive configuration sms from end user system will auto update newest configuration parameter which end user has changed Inputs 54 Page Configuration message with syntax ON Source Outputs Destination Reguires Mobile is available Pre condition Hide configuration message Post condition Automatically turn on network Get configuration parameter from server immediately Exception In case be failed when get configuration parameter from server database system will Logs exception Configuration parameter of database is not changed Table 23 Update Configuration Parameter Function Specification Activity Diagram act Update Config Parameter Request to get config parameter from server ve config paramete z to phone s DB Figure 15 Update Configuration Parameter Diagram 55 Page Activity Name Send configuratio n sms to tracked phone Reguest to get configuratio n parameter from server Save configuratio n parameter to phone s DB Code Description A1 UP1 To active new configuration parameters user needs to send configuration sms to tracked phone Content of configuration sms comply with following syntax ON
89. g CheckLogin name String pwd String tablePosition String tableSms String username String email String imei String mobi String usernameRegister String Figure 39 Account Class Diagram 4 2 2 1 2 Class explanation 4 2 2 1 2 1 ConfirmSite 109 Page ConfirmSite Attribute Description Table 75 ConfirmSite 4 2 2 1 2 2 AccountDBFuntion Package Common DatabaseCommon A Attribute qq A 3 eee 76 AccountDBFunction 4 2 2 1 2 3 CheckLogin Package Business Login CheckLogin Attribute _ Description PE a s DR RR Table 77 CheckLogin 110 Page 4 2 2 1 2 4 ChangePasswordDB Business UpdateAccount ChangePasswordDB Attribute 2 Description lt 01 JNew A NEM Si passwordOld String n lige 4 2 2 1 2 5 UpdateAccountDB Business UpdateAccount updateAccountDB Attribute Table 78 ChangePasswordDB Description 3 String 04 usernameRegister String Method 4 2 2 1 2 6 UpdateAccount Business UpdateAccount updateAccount Attribute Table 79 UpdateAccountDB Description Mi eo Table 80 UpdateAccount 111 Page 4 2 2 1 2 7 Phpsglajax dbinfo phpsglajax dbinfo Attribute No Name Type Description 01 database Sting 02 password String 03 tableAccount Sting _04 tableCallLog String 05 tableDanger
90. hould be short yet meaningful The choice of a variable name should be mnemonic that is designed to indicate to the casual observer the intent of its use One char actor variable names should be avoided except for temporary throwaway variables Common names for temporary variables are i j k m and n for integers c d and e for characters Constants The names of variables declared class int MIN WIDTH 4 constants and of ANSI constants should be all uppercase with words separated NEM WIDI 99 by under scores ANSI constants nt GET THE CPU 1 should be avoided for ease of debugging 34 Page III Chapter III Software Requirement Specification 3 1 Communication protocol The system uses HTTP1 0 or over connection to communicate with server When tracked phone start up the application will be auto started and connected to the Internet to check with server if there is new configuration parameters which will be downloaded For some other services such as end users change configuration parameters and send configuration message to tracked phone application will reguest data from targeted setver to update the most recent information 3 2 High Level Requirements 3 1 1 Domain Model sd MTSDomainDiagram Request current position Satellite GPS Retum current position Update location sms amp call logs Web Application Call Map API Return HTML Map Figure 7 MTS Domain Diagram 35
91. ick button change password C57 Check button 1 Go to Web site Display error Pass change http giangvh007 zxg net and click page password with on update account tab wrong data 2 Fill 3 fields old password new password confirm password with wrong data 4 click button change password C58 Check display 1 Go to Web site Display dot type Pass in 3 password http giangvh007 zxg net and click fields old on update account tab password new 2 Fill 3 field old password new password password confirm password confirm password 154 Page C59 Check IMEI exist 1 Go to Web site http giangvh007 zxg net 2 Going on update account page 3 Enter an IMEI what exited on database for example 000000000000 359199020254432 4 Fill remain fill with right data 5 click on Update button Display a error message error register jpg Pass C60 Check Email exist 1 Go to Web site http giangvh007 zxg net 2 Going on update account page 3 Enter a Email what exited on database for example tungbach90 yahoo com 4 Fill remain fill with right data 5 click on Update button Display a error message error register jpg Pass C61 Check mobile exist 1 Go to Web site http giangvh007 zxg net 2 Going on update account page 3 Enter a Email what exited on database for example tungbach90 yahoo com 4 Fill remain fill with right data 5 click on Update button Display a error
92. id mts bean Class CallLogBean Attribute No Name Type Description 98 CINE EE 02 tpe String 03 phoneNum Sting _04 duration Sting 05 time ung Method 4 2 1 4 2 8 TrackingBean Table 72 CallLogBean Package com android mts bean TrackingBean 107 Page EA 01 Accuracy ng 0 0 0 0 02 Altitude ng 94 03 Bearing ng 05 DistFromNetLocation String 0 0 0 id Sting 07 Latitude Double i O 08 LocationTime Double TI 09 Longitude Double 10 Speed Sting 11 Tag ng 0 0 0 12 Timestamp Sting 13 Type Sting 0 0 0 0 00 Attribute 06 Method Table 73 TrackingBean 4 2 1 4 2 9 AlarmManager Android class AlarmManager Method No Name Return Parameter Description Type 01 Set Pendinglntent operation W operation long Na triggerAtmillis MEI triggerAtMillis int type type Table 74 AlarmManager 108 Page 4 2 2 Server 4 2 2 1 Account 4 2 2 1 1 Class diagram email String imei String mobile String pwd String usernameRegister String email String id String imei String phone number String role String database String password String tableAccount String tableCalllog String tableDangerArea String tableParameters Strin
93. ien and Giang 3 remain members Bach Thao Nham All groups will often meet least twice a week Leader will update result of each meeting Leader need to take care about team member and find some strength weakness Learn more about process and how to assign jobs List tasks and check continuously Evaluate quality and progress weekly We need using words more clearly talk with each other more note and send email to confirm information All team members will have meeting for searching solution to help leader We overtime if a task is going miss deadline SCHEER Maybe there are daily meeting for all team to make information clearly If it necessary team need to meet some master Closed 24 Page 4 Magnetic storms We don t know when it We must update from sun can happens and we can t about position influence to GPS avoid that storm But the information always 1 system It creates time that storm impact to second or smaller Closed large accuracy GPS is small time and time rarely We update information about position information freguently Testing reguests We check status of device We prepare two rooting device continuously devices for risk several time It can damage device lead to having no device for test Closed Table 6 Risk Management 2 7 Coding Convention for Java 2 7 1 File Name Java Soft uses the following file suffixes File Type Suffix Java source
94. ime later Table 12 Position Saving Process Description A1 UP5 Users permitted set configuration for application on web Following this configuration they can apply for application by sending a configuration parameter Configuration maybe include interval to Update configuration parameters Synchronize to web server Update to server database 43 Page 3 2 2 Function Sms amp Call Logs Saving In this function system will save sms amp call logs of tracked phone and then upload JSON object to server to synchronize SMS Data AA OO p Content String Table 13 SMS Data Type JSON SMS Data Standard nm 9 mn 9 fid imei type phone number time content mo nm id imei type phone number time content JSON SMS Data Sample 1 012233423456098 incoming 0982248952 2012 10 18T00 25 18Z Hello 2 012233423456098 outcoming 0982248952 2012 10 18T00 12 23Z How are you Call Logs Data N Auto incremented gt 2 44 Page Time Table 14 Call Logs Data Type JSON Call Logs Data Standard HEEL y nm mm id imei type phone number time duration id imei type phone number time duration JSON Call Logs Data Sample 11 012233423456098 incoming 0982248952 2012 10 18T00 25 182 20 08 412 012233423456098 outcoming 0982248952 2012 10 18T00 1
95. in role go to admin page Parameter N A Return N A Update account Description As admin role if account information has changed update to database Parameter N A Return N A 07 Reguest user input Description Re input when input wrong again Parameter N A Return N A Table 101 Login Seguence Description 4 3 2 3 Register sd Register Seguence KO KO O O End User index RegisterSite ConfirmSite phpsalajax dbinfo I v v Create an account H N L v validate users input connect to DB Figure 49 Register Sequence Diagram No Method Name Description 128 Page Create an account Description Create new account when hasn t an account yet Parameter N A Return N A 02 Validate user s input Description Check valid data Parameter N A Return N A O3 Check existence of Description Check user name imei amp email of account account In case has not existed yet insert into database else re input Parameter N A Return ArrayList lt TrackingBean gt 04 Connect to database Description Connect database Parameter fileName Return N A Table 102 Register Sequence Description 4 3 2 4 Update sd Update Account Sequence O O O O End User updateAccount updateAccountDB ChangePssswordDB phpsalajax dbinfo N D link to update account page Update Account i update username imei mobile email to DB H D connect to DB H return sucessful H
96. ing Message e Step 1 After user Register and set up application successfully on device Send a message with special format admin will give you to number of phone what has IMEI registered 189 Page VII References 1 https play google com store apps 2 http en wikipedia org wiki Google Maps 3 https play google com store apps details id com kendroid android routetracker amp feature search result t W251bGwsMSwxLDEsImNvbS5rZW5kcm9pZCb5hb mRyb2ikLnJvdXRidHJhY2tlciJd 4 https play google com store apps details id com fsp android c amp hl vi 5 https play google com store apps details id com gizmoguip smstracker amp hl vi 6 http www youtube com watch v wJr HOt9NkA 7 http www youtube com watch v WYE gpqCUgc 8 http www youtube com watch v tW6x29ug5Ms 9 https play google com store apps details id com estrongs android pop amp hl en 190 Page
97. ing query Cursor query Return cursor MEE the results 3 getDataTracking 4 getDataSMS 5 getDataCallLog deleteAllDataTable String tableName 07 insert String table ContentValues values delete String table String where update String table ContentValues values String where where mi o 0 sglCommand String command Make a raw command guery o oq 11 N snCreate SOLiteDatabase db 13 onUpgrade SQLiteDatabase db int oldVersion int newVersion close MM EIS newVersion Table 60 DataBaseManager 97 Page 4 2 1 3 Call Logs 4 2 1 3 1 Class diagram class CallLog id long type String phoneNum Sting duration String time String CallLogObserver calllogSource CalllogDatsSouroe calllogSource CallLogDataSource context Context mContext Context CallLogObserver Context Handler void DECI 2 cronica vo onReceive Intent Context void CallLogDataSource Context close void createCallLog CallLogBean void deleteCaliLogi void open void close void DataBaseManager Context void delete String String void deleteAllDatsTable String void getDataCaliLogi ArrayList lt CallLogBean gt getDataSMS ArayList lt SMSBean gt getDataTracking ArrayList lt TrackingBean gt insert ContentValue String void onCreste SQLiteDstsbase void onUpgradelint int SOLiteDatabase void select String Curs
98. io button Step4 Click delete button Usemame bachot IMEI 359199020254432 December 2012 December e ie Mobile Choose a day Please enter a date here gt gt 2012 12 07 HH Delete Data Tracking choose what you M Delete Data SMS want to delete Delete Data Call Log click delete button 6 2 2 5 Change Password e Step 1 Login and move to update account tab e Step 2 You enter your current password to old password field Step 3 you enter new password to new password and confirm password field e Step4 click change button 184 Page 6 2 2 6 View History of Position SMS Call Logs e Step1 login e Step2 Choose a day on calendar icon 6 2 2 7 View Information of Danger Point e Step1 login e Step 2 Click on a danger point like below image 185 Page 6 2 2 8 Create a New Danger Point Step 1 Login and move to danger area tab Step 2 You click on a point on map Step 3 After click on a point information box will be showed you need to enter all data for this box Step4 Click Save 8 close button this box will show after Click a point You need to enter all fields and chck Save 6 2 2 9 Update Information or Delete Danger Point Step 1 Login and move to danger area tab Step 2 You click on a danger point on map Step 3 After click on a danger point information box will be showed you can change data on this box Step4 Click S
99. ion end users can click on map to define where danger area with their children is Then system will save all about danger area to alert end user when your children go to there 47 Page Danger Area data uu Auto incremented gt 2 a PITO Table 17 Danger Area Data Type Define Danger Area Screen Er vero Y voces EEN a o jede Last update 2012 12 07 08 57 55 Ka D Save amp Close Figure 12 Define Danger Area Screen Detail Process Function Specification 48 Page BF2A1 1 0 Define Danger Area MTS 10 10 2012 Normal Description End users can click on map to define where danger area with their children is Then system will save all about danger area to alert end user when your children go to there Inputs End users input Name Radius and Comment into Define Danger Area popup Source Name Radius and Comment from text fields of Define Danger Area popup Outputs Danger marker is added to list markers and displayed on the left of map Destination Map of Danger Area screen Reguires Danger Area screen is displayed Map is loaded Pre condition End users login by users role Post condition Sms amp call logs are stored in server database Exception In case be failed when save to server database system will Logs exception Table 18 Define Danger Area Function Specification
100. ion are changed Destination Account Management screen Reguires Account Management screen is displayed Account information is loaded Pre condition Adminlogin by admin s role Post condition Account information are updated and stored in server database Exception In case be failed when upload to server database system will Logs exception Check network to resave Table 33 Update Account Function Specification Activity Diagram 73 Page act MTS ManageAccountActivityDiagram Figure 31 Update Account Activity Diagram Activity Flow Code Description Name Login as BF7 A1 UP1 To manage accounts admin must have login to system admin role Load to BF7 A1 SP2 System connect database to select all account Then display display list of accounts to screen Paging when list view account is too long F7 informatio n Selectan BF7 A1 UP3 When view any account detail admin can click on account username of account link on list to select detail account detail Display B A1 SP4 Information detail of selected account is displayed selected immediately after click on Display popup 74 Page Activity Name Reset 3 3 BF7 password Update to BF7 A1 UP8 Update all information of account to database after click database one of button Update Delete Reset password Table 34 Manage Account Process Description Flow Code Description A1 UP5
101. iption is InputStream A jObj A JSONObect A 105 Page getDataFromServer S JSON url Get tring url Array configuration data from server 04 readParameterConfig String url String url Table 70 JSONParser Method No Name Return Parameter Description Type OI JSONParser Contructor 02 makeHttpRequest Stri JSONObj Get json from ng url String method ect url List lt NameValuePair gt params 4 2 1 4 2 6 DatabaseManager com android mts db DataBaseManager Attribute No Name Type Description Context ee SQLiteDatabase Method Return Parameter Description Type DataBaseManager Context context Constructor context takes and keeps a reference of the past context in order to access to the application assets and resources select String guery Return cursor with the results getDataTracking Ere T E 3 Get data from 106 Page getDataSMS tablesms I 05 getDataCallLog Array Get data from n AM e E dn tableName VNA tableName ContentValues values values delete String table String NEN I where where B update String table NE table ContentValues values values String where where command query AAA asa onCreate SQLiteDatabase m NNNM 13 onUpgrade SQLiteDatabase db db int oldVersion int oldVersion newVersion newVersion Table 71 DatabaseManager 4 2 1 4 2 7 CallLogBean Package com andro
102. ld ANA Get apkFile a t tete rae td tede 166 6 1 2 2 Set Up Application to Device iii 176 6 1 2 2 1 Prepare tor Setting isse epo Kaan Naa es 176 6 1 2 22 Set Up Application tho titt N Ain ced kien 176 6 2 User s GUIA RIA RAI 180 6 2 1 General G ide ie ee I aee oe e et eder de Ai a 180 6 271 1 EOD N TA Ke rhet aetate tele Mant tee diee t Gut ai ei atte 180 6 2 1 2 View Profile rechter eet op HR ec me met RR e aa deen 181 6 2 1 3 View Position SMS Call Logs of Current Day 181 6 2 1 4 View Danger Area Screen iii 182 6 2 2 Form REI 182 6 2 2 1 Register a New Account 182 6 2 2 2 Forgot PasswOrd rr etre AERE Te REP en piece v 183 6 2 2 3 User s Update Information ire 183 6 2 2 4 Delete Tracking SMS and Call Logs Data ss 184 6 2 2 5 Change Password Eno EO SE MA ENE ten 184 6 2 2 6 View History of Position SMS Call Loge 185 6 2 2 7 View Information of Danger Point ss 185 6 2 2 8 Create a New Danger Point 186 6 2 2 9 Update Information or Delete Danger Point ssssssssssssssssenrrssssrserernrsssseserennnssssesrreesnssne 186 6 2 2 10 Set Time Upload D ta ertt tette A ett e eaa 187 6 2 3 Admin Guide laa eR eR Le 188 6 2 3 1 View All Information of Users eaa a aa naa nn rra nn anna nne 188 6 2 3 2 Update Information of Users or Delete Ueers sssssssssssssersrsssssserersrsssseserersrssssesereessssee 188 6 2 4 User Enables Update Fo
103. leName insert String table ContentValues values delete String table String where E update String table E ContentValues values String mE where command guery o NE eee close E SQLiteDatabase MM db int old Version int 13 ma SQLiteDatabase newVersion newVersion Table 64 DataBaseManager 101 Page 4 2 1 3 2 5 CallLogReceiver com android mts callog CallLogReceiver Attribute No Name Type Description callLogSource CallLogDataSource 2 Method Return Parameter Description Type 01 onReceive Context context context Intent intent intent Table 65 CallLogReceiver 4 2 1 4 Upload Service 4 2 1 4 1 Class Diagram a a EE Figure 38 Upload Service Class Diagram 102 Page 4 2 1 4 2 Class Explanation 4 2 1 4 2 1 EnableConnectionService ackage com android mts service Class EnableConnectionService Attribute No Name Type Description E 01 URL String x S H configData ConfigDataSource Method Return Parameter Description l Type 01 isOnline Em onBind pa 1 03 onCreat EM onDestroy oL tDangerousLocation List uaration int Em Table 66 EnableConectionService 4 2 1 4 2 2 UploadDataService UploadDataService Attribute 01 Ser vk Y Method Return Parameter Description 103 Page allLog String filename createC
104. n 4 4 Database 4 4 1 Mobile call logs sms position x9 id 12 x id 12 x9 id type we type we timestamp phone number wc phone number wc tag ve time ve time we latitude 12 duration 31 content ve longitude 12 timestamp we timestamp we speed time danger_area parameter X id 12 x id 12 latitude 12 phone number longitude 12 time duration 31 radius 12 comment Figure 53 Mobile Database 132 Page Table Name No Field Name Data Type Description int auto increment Primary key This is un m Js ber conversation t e Ojo Ojo o dra ON e Content of sms Start time of sms Start timestamp of sms int auto increment Primary key This is automatically increase value d 2 Being timestamp position tag varchar Standard network to get position Start timestamp of call int auto increment Primary key This is automatically increase value il e Type of sms phone_num text Phone number of ber conversation e e ojo ojo CES ON 5 int auto increment Primary key This is automatically increase value 1 latitude Latitude of danger area longitude Longitude of danger area Radius of danger area Comment of danger area int auto increment Primary key This is automatically increase value 1 parameter 02 Phone number of supervisor ber on Table 106 Mobile Database Description danger_are a ojl olojoo ojo Ojo Ojo 01 BIO IN NN R Co 133 Page 4 4 2 Server
105. n implicit Application will automatically start immediately after starting phone Since that most of phone activities are tracked When staring application users can start remote tracking most phone activities such as positions messages and call logs On website users can track secretly position real time on map when tracked phone is moving Users also can view all saved messages and call logs of tracked phone System saves all messages amp call logs of tracked phone When tracked phone send receive a messages or make call this messages or call log is stored immediately in temporary database Users permitted set configuration for application on web Following this configuration they can apply for application by sending a configuration parameter Configuration maybe include interval to update to server phone number that sending alert messages to Before updating to server system has to read newest configuration If has a change update this configuration immediately then continue to update After updating configuration all saved messages amp call logs are synchronized to web server And also are displayed to users view After updating configuration all saved messages amp call logs are simultaneously updated to server database These messages amp call logs are saved as history Users can view anytime later Table 16 SMS and Call Logs Saving Process Description 3 2 3 Function Define Danger Area In this funct
106. ness rules This type of testing is based upon black box technigue that is verifying the application and its internal processes by interacting with the application via the Graphical User Interface GUI and analyzing the output or results Table identified below is an outline of the testing recommended for each application Ensure proper target of test functionality including navigation Test Objective data entry processing and retrieval Execute each use case use case flow or function using valid Technigue and invalid data to verify the following The expected results occur when valid data is used The appropriate error or warning messages are displayed when invalid data is used Each business rule is properly applied All planned tests have been executed eus wis amp All identified defects have been addressed and closed Identify or describe those items or issues internal or external Special that impact the implementation and execution of function test Considerations Table 108 Outline Testing Recommended 5 2 1 2 User Interface Testing User Interface Ul testing verifies a user s interaction with the software The goal of UI testing is to ensure that the User Interface provides the user with the appropriate access and navigation through the functions of the target of test In addition UI testing ensures that the objects within the UI function as expected and conform to corporate or industry standards
107. nows So this application has to automatically start and run implicit Application will automatically start immediately after starting phone Since that most of phone application activities are tracked Start remote A1 UP2 When staring application users can start remote tracking via tracking most phone activities such as positions messages and call logs On website users can track secretly position real time on map when website tracked phone is moving Users also can view all saved messages and call logs of tracked phone A1 SP3 By using GPS satellite this application can get phone s current position When moving position is Get current position also updated Save A1 SP4 System saves positions real time when tracked position real phone is moving When start moving after a fixed time interval the position is saved Send configuration parameters update to server phone number that sending alert messages to A1 SP06 Before updating to server system has to read ui newest configuration If has a change update this configuration immediately then continue to update A1 SP7 After updating configuration all just tracked positions are synchronized to web server All tracked positions are displayed on map for users can be easy to view A1 SP8 After updating configuration all just tracked positions are simultaneously updated to server database These positions are saved as history Users can view anyt
108. om Display an error message see email error admin jpg Pass C99 Check x close button of pop up 1 Go to Web site http giangvh007 zxg net 2 Login success by Admin account 3 click on a row 4 clean some field 5 click x button 1 pop up will be closed 2 nothing change on database Pass 162 Page C100 Check Log out 1 Go to Web site http giangvh007 zxg net 2 Login success by Admin account 3 click on log out Back to login screen Pass Table 120 Website on Chrome Admin Screen 5 4 Test Summary Report Table 121 Test Execution Summary 5 4 1 Test Execution 5 4 2 Test Results 5 4 2 1 Summary of Incident Reports Raised During Project Assigned Corrected Summary Accepted Total Open defects L 1 NK gt ML ze NE LAM NJE JIH NA zni vi NE II NA LJE misi rs i 163 Page E Table 122 Summary of Incident Report Total defects above exclude Cancelled defects 5 4 2 2 Conclusion All the inputs of system testing are baselined and approved by relevant stakeholders Common requirement ADD SRS 1 Design Software package System test cases System testing is over and all known issues if any are aware by relevant stakeholders Team lead Test lead PM Tech lead and 2 documented in Test summary report All planned Test Cases have been executed 100 test
109. ompound Statements Compound statements are statements that contain lists of statements enclosed in braces statements See the following sections for examples e The enclosed statements should be indented one more level than the compound statement e The opening brace should be at the end of the line that begins the compound statement the closing brace should begin a line and be indented to the beginning of the compound statement e Braces are used around all statements even singletons when they are part of a control structure such as an if else or for statement This makes it easier to add statements without accidentally introducing bugs due to forgetting to add braces Return Statements A return statement with a value should not use parentheses unless they make the return value more obvious in some way Example return returnmyDisk size 29 Page return size size defaultSize if if else if else if else Statements The if else class of statements should have the following form if condition statements if condition statements else statements if condition statements else if condition statements else if condition statements Note if statements always use braces Avoid the following error prone form if condition AVOID THIS OMITS THE BRACES UI statement for Statements A for statement should have the following form for initialization condition u
110. on 4 3 1 2 MobileTrack sd Tracking Seguence O 2 2 0 Q Qu WL End user Intent Poni pros Mobi rca Vapa n oe a h H H Start up mobile i H H onReceive context intent initLocationListeners i H H writeEntry entry H getAsContentValues i insert uri value DatabaseManager Figure 44 Mobile Track Sequence Diagram Method Name Description onReceive Context Description When start up mobile call function context Intent intent BootUpReceiver onReceive context intent Parameter context intent Return N A initLocationListeners Description Initialize LocationListeners service to tracking position Parameter N A Return N A writeEntry TrackerEntry Description Insert data into TrackerProvider object 121 Page Return N A getAsContentValues Description Set data into TrackerEntry object Parameter Return ContentValues insert Uri uri Description Insert to tracking table ContentValues values Parameter uri values Return Uri DatabaseManager Description Constructor to connect database Parameter N A Return N A Table 96 Mobile Track Sequence Description 4 3 1 3 Call Logs O O O O 6 e Intent CallLogReceiver CallLogObserver CallLogBean CallLogDataSouroe DatsBaseManager H onReceive context intent QUTGOING CALL onChangefselfChange H CallLogBean Cal ILogBean i i cresteCallLog calllog
111. onyMansger m TrackerData TrackDataHelper mPhoneStateListener PhoneStateListener onBind Intent IBinder onStart int Intent void initLocationListeners void getPreferences SharedPreferences trackNetwork boolean trackGPS boolean doDebugLogging boolean onDestroy void onCellLocationChanged CellLocation void onSignalStrengthsChanged SignalStrength void mLocation Location mDistFromNetLocation float mLogMsg String mTimestamp String mTag String mType EntryType buildCrestionString StringBuilder void cesteEntry flost Location TrackerEntry cresteEntry String String TrackerEntry ceateEntry Cursor TrackerEntry getAsContentValue ContentValues getDistFromNetLocation float getLocstion Location getLogMsg String getNullableFlost String Cursor Float getTag String getTimestsmp String getType EntryType setDistFromNetLocation flost void setLocation Location void setLogMsg String void setTimestamp String void TrackerEntry EntryType String TrackerEntry Location 444444444 44 4 4 4 4 4 4 4 EE TRIN URL String configData ConfigDataSouroe onBind Intent Binder onCreste void onDestroy void onStart int Intent void isOnline boolean getDangerousLocations List lt ConfigBean gt getTimeDuration int LocationTrackingListener onLocationChanged Location void onProviderDisabled String void on
112. or sglCommand String void update String ContentValue String void Figure 37 Call Logs Class Diagram 4 2 1 3 2 Class explanation 4 2 1 3 2 1 CallLogBean com android mts bean CallLogBean 98 Page Attribute Name Type Description r String n ium sim 4 2 1 3 2 2 CallLogObserver com android mts callog CallLogObserver Attribute No Name Description 01 calllogSource CallLog ource context Cote Table 61 CallLogBean Return Parameter Description _ Type 02 CallLogObserver Handler Handler context handler Context context Table 62 CallLogObserver 4 2 1 3 2 3 CallLogDataSource com android mts callog CallLogDataSource 99 Page Attribute Description ZEN er SQLiteDatabase ooo Return Parameter Description E Delete call log Table 63 CalLogDataSource 4 2 1 3 2 4 DataBaseManager com android mts db DataBaseManager Attribute Description 1 mContext Contexi sce e SOLIteDatabase ja 100 Page Method Return Parameter Description Type DataBaseManager Context context Constructor context takes and keeps a reference of the passed context in order to access to the application assets and resources 02 select String query Cursor query Return cursor MEE the results getDataTracking getDataSMS getDataCallLog deleteAllDataTable String tab
113. out move right left up and down C72 Check Save amp 1 Go to Web site 1 Display Fail close button http giangvh007 zxq net success message 2 Login success box 3 Click on Danger Area tab 2 Data what has 4 Click on a marker point on map changed will be 5 try to change name radius and saved to comment database 6 click save 8 close button See error register jpg C73 Check Delete 1 Go to Web site 1 Display Pass button http giangvh007 zxg net success message 2 Login success box 3 Click on Danger Area tab 2 data what has 4 Click on a marker point on map chosen will be 5 try to change name radius and delete on comment database 6 click save amp close button see marker delete jpg ID Table 118 Website on Chrome Danger Area Screen 5 3 2 5 History Screen Module Code Test Case Description Website on Chrome History Screen Test Case Procedure Expected Output Result 157 Page C74 Check default 1 Go to Web site 1 Screen will Pass of display http giangvh007 zxg net display all data of 2 Login success current day 4SMS log information positions on map C75 Check Day 1 Go to Web site 1 The day what Pass calendar icon http giangvh007 zxg net has chosen will 2 Login success be display on 3 Click on calendar icon textbox beside 4 choose random day 2 All data of SMS and call log will be showed on 2 table SMS call logs
114. p giangvh007 zxq net will show on dot textbox display 2 Enter some characters on type password textbox for ex tungbach C2 Check Create 1 Go to Web site Going on Pass an Account http giangvh007 zxg net Register Screen hyperlink 2 Click on Create an account C3 Check Forget 1 Go to Web site Going on forget Fail password http giangvh007 zxg net password Screen hyperlink 2 Click on forget password C4 Check Signin 1 Go to Web site Going on History Pass button with right http giangvh007 zxq net Screen data 2 Enter right User and password 3 Click Sign In button 145 Page C5 Check Sign in 1 Go to Web site Display a error Pass button with http giangvh007 zxg net message wrong data 2 Enter right User and wrong password See login 3 Click Sign In button fail jpg C6 Check Signin 1 Go to Web site Display a error Pass button with http giangvh007 zxq net message wrong data 2 Enter wrong User 3 Click Sign In button See login fail jpg C7 Check Sign in 1 Go to Web site Display a error Pass button with http giangvh007 zxq net message nothing input 2 Click Sign In button See login fail jpg Table 115 Website on Chrome Login Screen 5 3 2 2 Register Screen Module Code ID Test Case Description Test Case Procedure Website on Chrome Register Screen Expected Output Result link
115. paces Example for expr1 expr2 expr3 Casts should be followed by a blank Examples myMethod byte aNum Object x myFunc int cp 5 int i 3 1 2 7 7 Naming Conventions Naming conventions make programs more understandable by making them easier to read They can also give information about the function of the identifier for example whether it s a constant package or class which can be helpful in understanding the code The conventions given in this section are high level Further conventions are given at to be determined 33 Page Identifier Type Rules for Naming Example Classes Class names should be nouns in mixed class Raster case with the first letter of each internal word capitalized Try to keep your class names simple and descriptive Use whole words avoid acronyms and abbreviations unless the abbreviation is much more widely used than the long form such as URL or HTML Interfaces Interface names should be capitalized interface RasterDelegate like class names N interface Storing Methods Methods should be verbs in mixed run case with runFast the first letter lowercase with the first m letter of each internal word capitalized 9 tBackground Variables Except for variables all instance class and class constants are in mixed case class ImageSprite with a lower case first letter Internal Cp words start with capital letters myWidth Variable names s
116. pdate statements An empty for statement one in which all the work is done in the initialization condition and update clauses should have the following form for initialization condition update When using the comma operator in the initialization or update clause of a for statement avoid the complexity of using more than three variables If needed use separate statements before the for loop for the initialization clause or at the end of the loop for the update clause 30 Page while Statements A while statement should have the following form while condition statements An empty while statement should have the following form while condition do while Statements A do while statement should have the following form do statements while condition switch Statements A switch statement should have the following form switch condition case ABC statements falls through case DEF statements break case XYZ statements break default statements break 31 Page Every time a case falls through doesn t include a break statement add a comment where the break statement would normally be This is shown in the preceding code example with the falls through comment Every switch statement should include a default case The break in the default case is redundant but it prevents a fall through error if later another case is added try catch Statements A
117. phpsglajax genxml3 ToXML String xmlStr database String parseToXML String xmlStr password String tableAcoount String tableCallLog String tableParameters String tableSms String se username String lt a parseToXML String xmlStr genCallLog parseToXML String xmlStr Figure 42 ShowHistory Class Diagram 4 2 2 4 2 Class explanation 4 2 2 4 2 1 Phpsglajax genxml3 Business History Location phpsplajax genxml3 Attribute No Name Type Description 01 Umel Sting S EE EE 01 parseToXML String xmlStr htmlStr htmlStr Table 90 Phpsglajax genxml3 117 Page 4 2 2 4 2 2 Phpsglajax genxmlAllLocation Business History Location phpsplajax genxmlAllLocation Attribute 01 K a Method Retur Parameter Description Type Table 91 Phpsglajax gemxmlAllLocation 4 2 2 4 2 3 GenSms Package Business History SMS Attribute LS OF eue EXP Description 01 imei String A Method Return Parameter Description Type Table 92 GenSMS 4 2 2 4 2 4 GenCallLog Business History CallLog genCallLog Attribute 01 o otring N Method Return Parameter Description Type Table 93 GenCallLog 118 Page 4 2 2 4 2 5 phpsglajax dbinfo phpsglajax dbinfo Attribute No Name Type Description 01 database Sting 02 password Sting 03 tableAccount Sting _04 tableCallLog Sting
118. r old Password 2 Try enter some special and normal textbox characters to old password text characters box 96 amp by normal way For ex tungbach123 C52 Check min 1 Go to Web site Display an error Pass length of http giangvh007 zxg net and message Confirm click on update account tab please see Password 2 Enter 5 characters to confirm image textbox password example error update2 jpg 12345 153 Page C53 Check max 1 Go to Web site Just can input Pass length of http giangvh007 zxq net and max 12 Confirm click on update account tab characters Password 2 Try enter 13 characters or more textbox to confirm password example 12345567890123 C54 Check enter 1 Go to Web site You cannot enter Pass special http giangvh007 zxg net and them You just characters of click on update account tab can enter number confirm 2 Try enter some special and normal Password characters to confirm password characters textbox 96 amp by normal way For ex tungbach123 C55 Confirm 1 Go to Web site Display an error Pass Password http giangvh007 zxg net and message textbox click on update account tab error update2 jpg 2 Enter a password different to password in password field C56 Check button 1 Go to Web site Display a success Pass change http giangvh007 zxg net and page password click on update account tab 2 Fill 3 fields old password new password confirm password with right data 4 cl
119. r Device by Sending Message 189 References ue eH tee nn So RU e ectetuer dE 190 12 Page 13 Page Definitions and Acronyms Acronym Definition Note MTS Mobile Tracking System GPS Global Position System API Application Programming Interface JSON JavaScript Object Notation DB Database BF Business flow A Activity UP User process SP System process SMS Source Message Service Table 1 Definitions and Acronyms 14 Page I Chapter I Project Introduction 1 1 Project Information Project name Mobile Tracking System Project code MTS Product type Android application and Web application Timeline from September 2012 to December 2012 1 2 Purposes e Thefirst purpose is to fulfill the reguirements for Capstone Project e The second purpose we focus on creating a complete application what has our dramatically desire to help users can locate mobile on the map and track people in real time 1 3 Background All people want to protect their relatives and keep them safe And we are going to build mobile tracking application that helps them in securing life s most precious assets Mobile tracking system designed specifically for relatives tracking will provide users the assurance that their relatives location can be accessed at any time day or night For examples your fianc e should be at work but she is not answering her phone and you re afraid
120. rArea Sting 1 06 tableParameters String Z 07 tablePosition Sting _08 tableSms String 09 username Stig Method Table 85 Phpsglajax dbinfo 114 Page 4 2 2 3 Service 4 2 2 3 1 Class diagram target path String downLoadParameter header String imei String imei String Bund Ti semi database String password String tableAccount String tableCallLog String tableDangerArea String tsbleParameters String tablePosition String tableSms String username String Figure 41 Service Class Diagram 4 2 2 3 2 Class explanation 4 2 2 3 2 1 Handle upload Package Business Service Upload handle upload Attribute No Name Type Description 01 target path Stig Table 86 Handle Upload 4 2 2 3 2 2 DownLoadParameter Business Service Download downLoadParameter 115 Page Attribute Description Method 4 2 2 3 2 3 phpsglajax dbinfo Table 87 DownLoadParameter phpsglajax dbinfo Attribute Stri Ig l Sting String S ti Ig Method 4 2 2 3 2 4 ImportCSV Business Service Upload importCSV Attribute Table 88 Phpsglajax dbinfo No Name Ty Description 01 filename String 02 header mg Jo 03 imel String Method Table 89 ImportCSV 116 Page 4 2 2 4 Show History 4 2 2 4 1 Class diagram
121. ree item Databases a mm 135 https androinesp google fBJicom svn PhoneTrack CH SQLite Tutorial D SQliteDemo DI Swap3D Vg gt web 116 httos sndroinerp googlecode cor 19 PhoneTrack Screen 14 Team Synchronizing Eclipse SDK 174 Page ees ES amp Java EV Team Synchronizing amp DOMS ds Project Explorer 2 nev E JED Console ti G Tasks SE Outline MD LogCat mg Progre Abe B r n 1 E ej a 10 https androinesp g00glecode com svw Golnto amp i Animationbample z TEI AppClient Showln AlteShifteW gt z a A B Copy cuc 5 i eT HS Copy Qualified Name a gt PhoneTrack 135 https androinexp googleco Paste Cie Bi SQLite Tutorial X Delete Delete I SQLiteDemo Remove from Contest Ctrl Alte Shift Down EI Swop3D Gt gt web 116 etpe androinesp googlecodecom DE Te E Refactor Alte ShifteT gt des Import ui Export 2 Refresh FS Close Project Close Unrelated Projects Run As AD 1 Android Application Debug Ar A 2 Android JUnit Test Profile As ET 3 Java Applet Ak Shit X A Team 4 Java Application Alte Shifte X J Compare With Ju SJUnR Test Alte ShifteX T PAN NN Configurations Restore from Local History Android Toots Configure Source A Properties Alte Enter 13 PhoneTrack Resource Configurations Step 14 Select 1 Android Application menu item Edipse S File Edit Refactor Source Navigate Search P
122. rmation on map Parameter N A Return N A Connect to database Description Connect database 130 Page Parameter N A Return N A 04 Display SMS history Description Display SMS information Parameter N A Return N A 05 Display call logs history Description Display call logs information Parameter N A Return N A Display freeze point Description Display freeze point information on map history Parameter N A Return N A Table 104 Show History Seguence Description 4 3 2 6 Download Upload sd Upload Download Seguence handle upload importCSV downlosdPsrameter phpsalajax dbinfo v v v v i handle_upload v v v import CSV file connect to DB v reguest download paramters connect to DB return parameters Figure 52 Download Upload Seguence Diagram No Method Name Description 01 Handle_upload Description After upload file from mobile to server mobile send JSON object to server to inform having new upload file Parameter N A Return N A 131 Page Import CSV file Description Read CSV file that upload from mobile to save to database Parameter N A Return N A 03 Connect to database Description Connect database Parameter N A Return N A 04 Reguest download Description When received reguest from mobile parameter server select parameter data from database Parameter N A Return N A Table 105 Download Update Seguence Descriptio
123. roject Run Window Help CONOMIE EA 21 EKES Pa E Jove E Team Synchronizing DDMS ds Project Explorer 12 Bale von History El Problems E Console 13 Tasis SE Outline MD LogCat ug Progre Mle O r ro 5 Ged a 10 https androinexp googlecode com svi Trunk s Android a l Animationbample e TTE n PhoneTrack Android Launch H wk eki and acad PhoneTrack The connection 8 W com eamplekillen day and age Reflection PhoneTrack You must res n D Databases PhoneTrack Please ensure that adb is corr Demo ILF gt PhoneT rack 135 https endrcinexp googlecode com svn PhoneTrack 7 SQLite Tutorial By SQUteDemo BI Swap3D D gt web 116 https andoinexp googlecode comy svn web Ju TV x 1 PhoneTrack After Run application you can see the result Screen 16 Go to folder PhoneTrack bin you can get phonetrack apk 175 Page You Go to a Bee dt PhoneTrack bin TO ch c v Bao gom trong thu vien v Chia s v i v Ghi Cap m i kas Tn ME Fee folder to get RE Ban l m vi c D classes 12 13 2012 9 49 Cip Ss PhoneTrack apks 8 T i xu ng d res El Vi tri M i day 2 AndroidManifestxml 5 KB classes dex 4 KB A Thu vi n arlist cache 1KB E Hinh anh PhoneTrack apk 84 KB di Nhac Tesources ap_ 9 KB A T i li u E video E M y t nh l Dia Cuc b C G Bia Cuc b D cs Dia Cuc b E Su Mang 1195 430px tg 19 1366 x 768px K ch c 1352K8 6 1 2
124. she may have had an accident With mobile tracking system you will know she s safe in the office Your husband tells you he s going to be late tonight due to a business meeting Is he really at the office or is he having dinner somewhere else Your kids tell you that they are staying late with friends to study for their test Are they really there or did they go somewhere else without letting you know You can now find out where they are at any time as long as using MTS with some features locate mobile on map track people in real time alert when they are in danger And your loved one will never know their mobile is being tracked because MTS remains completely hidden from the user Once installed you can secretly track their mobile activities 24 7 from your MTS user account 15 Page 1 4 Literature Review of Existing Systems GPS Tracking Pro is application that keeps users family and friends MW Rated safe by tracking their real time location using any Android phone With the best in GPS technology this app tracks the exact location G PS of your family members and alerts you when they are in trouble using the app s innovative check in feature TRAGKER The application allows family members to locate each other on map Figure 1 GPS Tracking Pro SMS Tracker Agent is application that tracking phone and monitoring system for Android phones Remotely track and monitor all SMS MMS text messages calls and GPS location Users
125. siness Technigue Cycle Testing Modify data files to increase the number of transactions or the scripts to increase the number of iterations each transaction occurs Scripts should be run on one machine best case to benchmark single user single transaction and be repeated with multiple clients virtual or actual see Special Considerations below Single Transaction or single user Successful completion Completion Criteria of the test scripts without any failures and within the expected or reguired time allocation per transaction Multiple transactions or multiple users Successful completion of the test scripts without any failures and within acceptable time allocation cereus Comprehensive performance testing includes having a background workload on the server There are several methods that can be used to perform this including 139 Page Drive transactions directly to the server usually in the form of Structured Ouery Language SOL calls Create virtual user load to simulate many clients usually several hundred Remote Terminal Emulation tools are used to accomplish this load This technigue can also be used to load the network with traffic Use multiple physical clients each running test scripts to place a load on the system Performance testing should be performed on a dedicated machine or at a dedicated time This permits full control and accurate measurement The databases used for Performance Testing shoul
126. svFileTableS MS String filename filename a I 03 createCsvFileTableTr filename acking String filename onBind Intent intent IBinder_ intent mai Ka onHandlelntent Inten t intent scheduleNextUpdate Q SS SENS UploadDataService uploadFile String tableName tableName Table 67 UploadDataService 4 2 1 4 2 3 UploadTracking UploadTracking Method No Name Return Parameter Description Type 01 dolnBackground String Upload data args Table 68 UploadTracking 4 2 1 4 2 4 CSVWriter com android mts utils CSVWriter 104 Page 02 lineEnd String 03 pw PrintWriter _04 quotechar Char 05 separator Char Method No Name Return Parameter Description Type 01 close Close the underlying stream writer flushing any buffered content Attribute No Name Type Description 01 escapechar Char 02 CSVWriter Writer writer Constructs writer CSVWriter using a comma for the separator 03 CSVWriter Writer Writer Constructs writer char separator CSVWriter with separator char guotechar supplied separator quotechar char escapechar quote char escape escapechar String lineEnd char and line ending lineEnd CR 1 1 stream to writer ana O KN nextLine to the file Table 69 CSVWriter 4 2 1 4 2 5 JSONParser com android mts utils JSONParser 3 Json String Attribute Name Type Descr
127. t time distance on website 3 Check data on database of device 4 Stand at location inside this area with customized time on website 5 Go outside and comeback then standing at this dangerous area with customized time on website for this area alert on number phone what have registered 2 There is another alert to number phone what have registered Table 113 Check Danger Areas 5 3 1 4 Check Receive Active Message Application Receive Active Message 144 Page A16 Check 1 Setup and turn off 3G and GPS 1 3G and GPS Fail activation after on device are turned on device receives 2 Set up dangerous point time Auto message distance on website 2 Data is update 3 Send Active message to device on database of following form ON device 4 Check turn on GPS 3G 5 Check turn on update information A17 Check delete 1 Setup and turn off 3G and GPS 1 Message is Pass message after on device on device deleted and 3G device receives 2 Send Active message to device and GPS are message following form ON turned on Auto 3 Check message on inbox Table 114 Receive Active Message 5 3 2 Central Web with Chrome 5 3 2 1 Login Screen Module Code Website on Chrome Login Screen ID ecd a Test Case Procedure Expected Output Result escription C1 Check 1 Go to Web site Password textbox Pass Password htt
128. tely loss of data disconnect to the server Table 35 Bugs or Defect Rate 3 3 3 Availability e The system will be available 24 24 and should be closed 1 day for maintaining every two months e Percentage of time available is about 95 97 Because the system uses client server protocol through Internet network we cannot control cases of force majeure such as power failure disconnected network 3 3 4 Security e Privacy the system should provide protection method for protecting user information from outside or from other users All the information of users must not be available for anyone or software that is not part of the system User password is also invisible for the system administrator e The system must provide methods to prevent common security attacks E g SOL injection e Application is installed underground e Transformation of confidential information must be encrypted e The system must provide secure methods for users to recovery their password including the interference of system s admin 3 3 5 Maintainability Coding standards and naming conventions e Output of the project must include coding standards and naming conventions documentations Implementation code must be easy to maintain e All code must be clearly commented including class method documentations e If some components are reused the documentations of those components must also be included Design e The design of the system must b
129. tion Login In this function user login to website to use system service Login Screen Password Figure 25 Login screen 65 Page Detail Process Function Specification ON ae MTS Date 10 10 2012 Description User login to website to use system service Inputs Login End users input Username amp Password into Login Form Source Login User name and Password from text fields Login form Validate Login Item Reguired Validate Messages Username From 6 to 12 characters T i thi u 6 ki tw Cannot input special T i da 12 ki tw characters Password Display type T i thi u 6 ki tu From 6 to 12 characters T i da 12 k tu Cannot input special characters Outputs If account is exited user login successfully by own account Destination Login screen Requires Login screen is displayed Pre condition 66 Page Login End users go to web by url Post condition Login End users login by own account and use all feature of system by users role Exception In case be failed when upload to server database system will Logs exception Check network to resend Table 29 Login Function Specification Activity Diagram Link to history page Figure 26 Login Activity diagram Activity Gei Code po npa Name Enter user M UP1 We using website to remote
130. tion time call this function to upload data from mobile to server Parameter args Return N A 123 Page TrackingBean getDataTracking writeNext String nextLine W getDataSMS CallLogBean getDataCallLog 12 makeHttpRequest String url String method List lt NameValuePair gt params 13 delete String tableName String where Log e Upload Fail Description Constructor function to save to positions object Parameter N A Return N A Description Get data from mobile and save to TrackingBean object Parameter N A Return ArrayList lt TrackingBean gt Description Write data to CSV file to upload Parameter nextLine Return N A Description Constructor function to save to sms object Parameter N A Return N A Description Get data from mobile and save to SMSBean object Parameter N A Return ArrayList lt SMSBean gt Description Constructor function to save to CallLogBean object Parameter N A Return N A Description Get data from mobile and save to CallLogBean object Parameter N A Return ArrayList lt CallLogBean gt Description Get response from server Parameter url method params Return JSONObject Description If upload successfully delete data that saved in mobile database Parameter tableName where Return N A Description If upload fail log event Parameter string string Return N A Table 98
131. tracked phone in danger Dangerous Areas Data WEEB EE mop Long Table 20 Dangerous Areas Data JSON Data Standard id imei longitude latitude id imei longitude latitude JSON Data Sample 11 012233423456098 20 2345 105 2345 120 2 012233423456098 20 1223 102 2398 30 Detail Process Function Specification Function No BF2A2 Function Version Function Name Danger Tracking Author MTS Date 10 10 2012 Normal 51 Page Description According to list of dangerous areas system will check and send alert messages to end user if tracked phone in danger Inputs Longitude and latitude of current position Source Longitude and latitude of current position by Android API Outputs An alert message Destination Delivered Reguires Network Pre condition Network already turns on 3G Wifi Post condition GPS is available Exception Table 21 Danger Tracking Function Specification 52 Page Activity Diagram sd DangerTrackingDiagram Figure 14 Danger Tracking Diagram Activity Flow Code Description Auto start BF2 A2 SP1 Application is set up on smart phone without let smart application phone user one knows So this application has to automatically start and run implicit Application will automatically start immediately after starting phone Since that most of phone activities
132. x 2 Login success 3 Click on Danger Area tab 4 click on a point on map 5 enter 5 characters or less to name textbox 6 click save button C67 Radius textbox 1 Go to Web site You just can input Pass http giangvh007 zxg net number 2 Login success 3 Click on Danger Area tab 4 click on a point on map 5 Try to enter some characters or less to radius textbox 6 click save button C68 Check Close 1 Go to Web site Disappear the Pass button http giangvh007 zxg net box 2 Login success 3 Click on Danger Area tab 4 click on a point on map 5 Click on close button 156 Page C69 Check click on 1 Go to Web site This point will be Pass marker name http giangvh007 zxg net showed 2 Login success 4Show position 3 Click on Danger Area hyperlink Show box with 4 click on a point on map name radius and 5 Click random on marker name comment note see image C70 Check List of 1 Go to Web site 1 All danger Pass danger area http giangvh007 zxg net points will be 2 Login success showed 3 Click on danger tab 2 Danger point 4 click on random point of list of will be showed danger area if there is no data in database then SMS table will show Khong co du lieu cho ngay C71 Check zoom in 1 Go to Web site They work well Pass zoom out move http giangvh007 zxq net right left up 2 Login success and down 3 Click on Danger Area hyperlink 4 Use zoom in zoom
133. y enter some special and normal textbox characters to Password textbox characters example 96 amp by normal way For ex 4bach123 C14 Check min 1 Go to Web site Display an error Pass length of http giangvh007 zxq net and click message Confirm on Create an account link please see Password 2 Enter 5 characters to confirm image Error textbox password textbox register jpg example 12345 147 Page C15 Check max 1 Go to Web site Just can input Pass length of http giangvh007 zxg net and click max 12 Confirm on Create an account link characters Password 2 Try enter 13 characters or more textbox to confirm password textbox example 12345567890123 C16 Check enter 1 Go to Web site You cannot enter Pass special http giangvh007 zxq net them You just characters of and click on Create an account can enter number confirm link and normal Password 2 Try enter some special characters textbox characters to confirm password For ex bach123 textbox 96 amp by normal way C17 Confirm 1 Go to Web site Display an error Pass Password http giangvh007 zxq net and message textbox click on Create an account link See error 2 Enter a password to password register jpg textbox 3 enter a different password to above password to confirm password to confirm password textbox C18 Check IMEI text 1 Go to Web site Display an error Pass box with enter http giangvh007 zxg net mess
Download Pdf Manuals
Related Search
eport eportal login eportal eportfolio eportal income tax eportal paccar eportfolio examples eportal florida e filing eport cloud eportal login florida eportal montgomery county md eportal filing eport cloud login eportal login fauquier county eportal login paccar eportal montgomery county md eportal eportfolio login eportfolio lagcc eportal florida eportal daf eportfolio slcc eport saigonnewport vn eportal renap eportal kkp eportal registro mercantil eport sp-itc
Related Contents
dp corporate language training user manual 製品カタログ - 太洋無線株式会社 Guide du routard numérique : Épisode 1 600345371 VF 4800 series owner's manual MANUAL DE USO Y MANTENIMIENTO téléchargement fichier pdf (212 ko) VXi4002 Blanco 513-693 User's Manual 10.311 BHC USER GUIDE (Aug 2010):Layout 1 Copyright © All rights reserved.
Failed to retrieve file