1、基于 Android 平台的个人日历的设 计与开发 摘要 个人日历是基于 Android 平台开发的, 运行在 Android 手机平台的个人日程 管理软件。本文是对基于 Android 平台的个人日历的设计与开发。 首先,本文介绍了软件开发的背景与特点。然后,本文介绍了软件所使用的 关键技术,包括 Android、fragment、service、activity。再然后,介绍日历 的设计与开发,包括系统需求分析、功能设计、框架设计、界面设计、数据层设 计以及各部分功能的实现。最后本文对全文进行总结,总结设计实现过程中遇到 的问题、系统的不足、优势与自己的收获。 关键词:个人日历、Andro
2、id、日程管理 The designationand development of personal calendar based on the Android platform Abstract Personal calendar is a personal schedule management software developed on the Android platform, running on the Android platform. This paper is to design and develop of personal calendar based on the An
3、droid platform. First, this paper introduces the background and characteristics of software development. Then, this paper introduces the key technologies of software use, including Android, fragments, service, activity. Then, introduces the design and development of calendar, including system requir
4、ements analysis, functional design, framework design, interface design, the data layer design and the realization of the function of each part. Finally this paper summarizes the full text, summarizes the problems in the implementation process of design, advantages and disadvantages of the system and
5、 the deficiency of the harvest of their own. Keyword: Personal calendar, Android, schedule management 目录 1. 绪论 5 1.1. 课题背景 5 1.2. 研发现状 5 1.3. 软件研究意义. 5 1.4. 研究内容与方法 . 6 2. 相关技术与知识 . 7 2.1. 开发平台 Android 7 2.2. MVC 开发模式 7 2.3. 局部界面 fragment 7 2.4. Web service 8 2.5. Localservice. 8 2.7. 线程 . 8 2.8. 开发
6、平台介绍. 9 3. 个人日历的设计 . 10 3.1. 需求分析 10 3.2. 功能设计 12 3.3. 数据层设计 15 3.4. 界面布局设计. 21 4. 个人日历的实现 . 23 4.1. 数据层实现 23 4.2. 界面实现 35 4.3. Web 服务 . 43 4.4. 本地服务 46 4.5. 日程同步 48 4.6. 屏幕旋转后的 Activity 数据保存 . 49 4.7. Activity 向 Fragment 传递数据 50 4.8. Fragment 之间通信 51 5. 总结 53 5.1. 遇到的问题与解决 . 53 5.2. 软件的优势与不足 . 54 5.3. 本章小结 错误错误!未定义书签。未定义书签。 6. 总结 错误错误!未定义书签。未定义书签。 参考文献 . 56 致谢 56 1. 绪论 1.1. 课题背景 在现代的生活中,人们每天要处理的事务越来越多。如何有效的管理自 己每天的日程安排,已经变得越来越重要。 1尤其在团队工作中,更需要相 互协调以提高整体效率。 2 在生活中中重要事件多半以电话、短信、邮件的 方式发送, 手机中的