基于SQLite3的Android电子阅读器
设计 李伟锋
物理与电子信息 电子信息科学与技术专业 :070524044
指导教师:崔建华
摘要:本设计在Eclipse开发环境下、使用
Java编程语言、采用SQLite3数据库设计了一款手机电子阅读器。该阅读器具有阅读、
查询、添加书签、保存历史记录等功能。论文简单介绍了Android
系统、Java语言和SQLite3数据库的相关知识,重点阐述了阅读器的设计
方案和信息格式转换方法,详细描述了各功能模块的实现方法,并给出了主要程序代码。最后,在Android模拟器上进行了功能测试,测试结果表明,各功能模块运行正常。该阅读器功能比较全面,且代码具有较强的可扩展性,可通过后续开发扩展阅读器功能。
关键词:电子阅读器;Android系统;Java语言;SQLite3
Design of E-reader in Android System Based on SQLite3
Li Wei-feng
College of Physics and Electronic Information Electronic Information Science and Technology No:070524044
Tutor: Cui Jian-hua
Abstract: In the thesis, a design of the e-reader in Android system is proposed, which uses Eclipse as the development environment, Java as the programming language and SQLite3 as the database. The E-reader has functions such as reading, seeking, bookmark and history saving. After briefly introducing the Android system, Java language, SQLite3 database, the design scheme and the method of information format conversion are emphatically expounded. Then the realization of each functional module is described in detail, and major programming code is given. The debugging result in Android emulator indicates that all the function modules run normally. The function of the e-reader is quite comprehensive, and the programming code has strong scalability. So it is easy to expand the functions by the follow-up development if necessary.
Key
words: E-reader; Android System; Java; SQLite3
目 录
摘要 1
1 引言 4
2 开发环境 4
2.1 Android简介 4
2.1.1系统架构 5
2.1.2 四大组件 5
2.2 Java语言 6
2.3 SQLite3数据库 7
2.3.1 SQLite3的特点 7
2.3.2 基本SQL语句 7
3 阅读器的设计方案 8
3.1 设计方案 8
3.2 信息格式转换 9
3.2.1 信息格式 9
3.2.2 转换工具 9
3.2.3 转换方法 9
4 阅读器的功能实现 10
4.1
软件工程包 10
4.2 各模块的实现原理 11
4.3 各模块功能的实现 11
4.3.1 主界面 11
4.3.2 阅读功能模块 11
4.3.3 书签功能模块 12
4.3.4 历史记录功能模块 12
4.3.5 笔记功能模块 13
4.3.6 多版本对照功能模块 13
4.3.7 每日灵修功能模块 14
4.3.8 关键字
搜索功能模块 14
4.3.9 快速查找功能模块 14
4.3.10 设置功能模块 15
4.3.11 帮助
文档功能模块 15
5 结束语 16
参考文献 16
附录 18
1 引言
随着人们生活节奏的不断加快,手机以其方便快捷的优点,逐渐成为人们日常生活必不可少的通讯工具。随着人们对手机娱乐功能要求的不断提高,各种手机应用软件层出不穷,其中电子阅读器帮助人们更加合理地利用时间,在休闲娱乐的同时获取知识,成为手机用户生活的小助手,有很大的市场价值[1]。
传统的电子阅读器是将要读取的内容转成txt格式的文件,通过文件流读出,并在相应的控件上进行显示。但这只适用于一些内容短小的文本,对于一些内容庞大复杂的文