Design and Implementation of the Android System Log Storage and Viewing Tools
- Author
- AnLiJun
- Advisor
- YuanYuYu , HanWanJiang
- School
- Beijing University of Posts and Telecommunications
- Major
- Software Engineering
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 108
- Citations
- 0
Abstract
November5,2007, opening up a handheld device Alliance (Open Handset Alliance) since the establishment of the Android operating system, its rapid evolution and growth, and development tools for the Android system is also in a stage of rapid development, November22,2010, Android Tools ProjectSite establishment, has introduced a new version of development tools.Developers to leverage a variety of text editor to view the log file, such as Uedit32, Source Insight, Emacs, but the face of the line number of the log file, a text editor is plain text to find, can not be screened for Logcat log formatand filtering, such as Tag, process ID and so on. If you have one can view the log to facilitate rapid filtration developers are concerned about the contents of the tool will solve this problem view the log. But so far, the Android official launch of offline log viewer tool, developers can view the log file in text form, or some third-party tools, just some third-party tools in the operating habits DDMS,(Dalvik Debug Monitor Server) The tools have more differences, the user is not approachable.This paper discusses the working principle and view of the Android logging system to save the log, the log file format, summarizes the existing log storage tools and viewing tools, designed and implemented a log storage tool (Logcat Recorder), and an Android operating system Logcat log files the offline tools (AndroidLogcatViewer). This system requires a tool to run the Android system, used to store logs; another system running on the PC side, used to view recorded log files, it is similar to the mode of operation of the DDMS, you can view the log files of the Android system, a graphical in the form of display, by setting filters to quickly find a lot of log log developers are concerned about, and then upgrade to locate, analyze and solve problems faster.The project source code hosted on Google Code site, to the Apache License, Version2.0protocol open source. An efficient offline log viewer tool, not only for the Android open-source community to get to some of the concerns of the open source community, support, and promote and practice the Google Code hosted open source software development model.
Table of contents
Summary 4-5
ABSTRACT 5-8
first chapter 8-16
1.1 topics sources 8-10
1.2 research status 10-14
1.3 author's work 14
1.4 thesis structure 14-16
Chapter II system Requirements Analysis 16-20
2.1 project Description 16
2.2 system functional requirements analysis 16-18
2.2.1 Mobile client features 17
2.2.2 PC -side functionality 17-18
2.3 nonfunctional requirements 18-20
2.3.1 cross- platform requirements 19
2.3.2 compatibility needs 19
2.3.3 performance requirements 19-20
Chapter III system design 20-37 <br / > 3.1 overall design principles 20
3.2 overall design 20-21
3.3 log file data storage structure design 21-22
3.3.1 log file data structure design 21-22
3.3.2 directory and file name format rules designed 22
3.4 log storage tool designed 22-24 <br / > 3.4.1 log storage hierarchy tools 22-23
3.4.2 log storage tool class structure 23-24
3.4.3 state diagram log storage tool 24
3.5 log viewer tool designed 24-37
3.5.1 development languages ??and development environments to select 25
3.5.2 The main interface design 25-26
3.5.3 main menu design 26-27
3.5.4 format parser designed 27-30
3.5.5 log filter design 30-33
3.5.6 timestamp synchronization jump design 33-34
3.5.7 Bugreport file shows the way design 34-35 <br / > 3.5.8 other design 35-37
Chapter IV system log storage and viewing tools to achieve 37-54
4.1 development environment to build 37 - 39
4.1.1 Java and Android development environment to build 37
4.1.2 Google code project hosting environment to build 37-39
4.2 log parser implementation 39-41
4.2.1 LogCatMessageParser class 39
4.2.2 regex writing 39-40
4.2.3 LogCatMessage object 40-41
4.3 filter core functions to achieve 41-43
4.3.1 LogCatFilter class implements 41-42
4.3.2 can achieve lasting filter 42
4.3.3 temporary filter to achieve 42-43
4.4 main interface functions to achieve 43-47
4.4.1 main Menu achieve 44-45
4.4.2 settings are saved reading achieve PreferenceStore class 45-47
achieve 4.5 LOG view LOGCATPANEL class 47-52
4.5.1 The list of filters to achieve 48-50
4.5.2 toolbar achieve 50
4.5.3 logs show the table to achieve 50-51 <br / > 4.5.4 context menu realize 51-52
4.6 timestamp synchronization jump realize 52
4.7 BUGREPORT format support 52-54
Article chapters publish and optimize system 54-58
5.1 system release 54-55
5.1.1 source code release 54
5.1.2 program packaged release 54
5.1.3 user documentation written 54-55
5.2 system optimization 55-58
5.2.1 hotspot code found 55-56
5.2.2 refresh filter optimization 56
5.2.3 log table optimization 56
5.2.4 optimization results and analysis 56-58
Chapter VI Conclusion 58-59
6.1 thesis summary 58
6.2 problems and prospects 58-59 <br / > 6.2.1 strengthening code review 58
6.2.2 for different operating systems are packaged 58
6.2.3 using auxiliary database query log 58 <br / > 6.2.4 use the open source community , gather feedback 58-59
References 59-60
Thanks 60
Related dissertations
- Design and Implementation of a Android-based Home Security Remote Monitoring Terminal System
- Research and Implementation of Vedio Surveillance System Based on Android Architecture and Smoke Detection
- Design and Implementation of Crane Monitoring System Based on Android
- Research and Implementation of Intelligent Video Surveillance System Based on Android
- Design and Research of Mobile Video Surveillance System Based on MJPG-Streamer
- Research and implementation of remote monitor system of ship based on the technology of the Internet of things
- Security Detection System Based on the Android Paltform
- Research on Meteorological Data Acquisition and Processing System
- The Research of Fall Detection Based on Mobile Terminal
- Design and Implementation of a Human Activity Monitoring System Based on Smart Mobile Terminal
- The Smart Home Control System Based on Android System
- The Design and Implementation of Android Smart Home Control System
- Embedded System Applications in the Smart Home
- Design and Implementation of Intelligence Home System Based on ZigBee
- Design and Implementation of Smart Home System Based on Android Platform
- Research and Design of Embedded Intelligent Bus Station Guideboard Control System
- The Design and Implementation of Multi-functional Smart Home System
- Research on Intelligent Home Furnishing system based on Android
- Remote Robot Control Technology Based on Android System
- Design of Small Mobile Robot System Based on Android