基于Android的日历系统的设计与实现

更新时间:2023-03-16 02:02:01 阅读量: 教育文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

华北电力大学本科毕业设计(论文)

`

院 系 控制与计算机工程学院计算机系

专业班级 软件工程1001班

学生姓名

指导教师

毕 业 设 计(论文)

题 目 基于Android的日历系统

的设计与实现

二○一四年六月

I

华北电力大学本科毕业设计(论文)

基于Android的日历系统的设计与实现

摘要

Android系统凭借其良好的用户体验、低廉的成本及高开放性产生了巨大的应用量和广阔的应用面。如今,基于Android系统的应用极为丰富,从输入法到影音播放器,从系统工具到网页浏览器,从社交网络客户端到学习办公助手工具,以及形式繁多的游戏应用,都有力体现了Android平台的强大的适应性和发展潜力。

而日历应用作为智能终端的出厂必备控件,更是Android系统中不可或缺的一部分。而应用开发商力求为客户带来更好的用户体验,将日历这一原本普通的生活用品打造成植于移动终端中的生活助手,且界面风格迥异,功能也是趋于多样化和一体化。

本文通过论述对基于Android的日历系统的开发的全过程,研究了Android系统的开发环境、核心构架、主要组件,展示了开发移动应用的一般过程,并对Android平台的背景、现状和发展前景进行了讨论。本次项目所实现的日历系统,除了最基本的日期信息查询功能外,还具备了公历转换农历功能、指定日期跳转功能、当天日期定位功能和日程管理功能。通过转换功能,用户可将希望查询的公历日期转为农历日期;如果用户想知道某一天或某个月有什么节日,可以使用跳转功能;在主界面没有显示当月日期时,用户可通过定位功能回到当天日期;而日程管理功能则为用户提供了类似备忘录的平台。

关键词;Android;移动终端;手机日历;移动应用开发

I

华北电力大学本科毕业设计(论文)

THE DESIGN AND IMPLEMENTATION OF

CALENDER BASED ON ANDROID

SYSTEM

Abstract

Android system has been achieved a great number of users because of its excellent user experience,low cost and high openness.Nowadays,there are plenty of smartphone applications based on android system such as input methods,audio/video players,system tools,web browsers,social networks,school/office softwares,games,etc,which show great adaptation and development potential of Android.

Calender has become a necessary widget in intelligent terminals and also a quite important part of Android system.App developers strive to improve the user experience so that they change the calender,a commonplace articles for daily use,into a kind of assistant for users,with different kinds of interface.And its function becomes more and more diversified and incorporate.

This article is about the whole development process of calender based on Android system, the development environment,the core framework and the main module of Android.Also,we will discuss the background,the current situation and the development potential.The Calendar we enforce in this project contains functions not only the most basic date information inquire,but also other functions such as gregorian-lunar transformer,current date locator,events manager.Users are able to transform gregorian dates they want to lunar dates by using gregorian-lunar transformer;If users want to check out festivals of dates,the skip function will help;Users could skip back to current date with the help of date locator when the main interface doesn ‘t show;And the events manager provides a kind of platform like memorandum.

Keywords: Android; The mobile terminal; Smart mobile Calender;Mobile application

development

II

华北电力大学本科毕业设计(论文)

目 录

摘要 ....................................................................................................................................................................... I Abstract ................................................................................................................................................................ II 目 录 ............................................................................................................................................................... 3 1绪论 .................................................................................................................................................................... 1

1.1课题背景 ................................................................................................................................................ 1 1.2 发展现状 ............................................................................................................................................... 1

1.2.1 Android SDK发布里程碑 ....................................................................................................... 1 1.2.2 Android市场发展轨迹 ............................................................................................................. 3 1.3 Android系统的发展前景 ..................................................................................................................... 3 1.4 课题研究意义 ....................................................................................................................................... 4 1.5 本文主要结构 ....................................................................................................................................... 5 2 Android系统核心技术概述 ............................................................................................................................. 6

2.1 Android的体系结构 ............................................................................................................................. 6 2.2 Android系统组件 ................................................................................................................................. 8 2.3 Android主要控件 ................................................................................................................................. 9 2.4 本章小结 ............................................................................................................................................. 11 3 基于Android的日历系统 .............................................................................................................................. 12

3.1需求分析 .............................................................................................................................................. 12

3.1.1 系统目标 ................................................................................................................................. 12 3.1.2 功能需求描述 ......................................................................................................................... 12 3.1.3 界面需求分析 ......................................................................................................................... 12 3.1.4 运行需求分析 ......................................................................................................................... 12 3.2 系统概要设计 ..................................................................................................................................... 12

3.2.1 系统功能结构 ......................................................................................................................... 12 3.2.2 系统界面布局 ......................................................................................................................... 13 3.3 主要算法与核心代码实现 ................................................................................................................. 14

3.3.1 主界面 ..................................................................................................................................... 14 3.3.2 菜单项目操作 ......................................................................................................................... 16 3.3.3 日程管理功能实现 ................................................................................................................. 18 3.3.4 农历、闰年、节日算法 ......................................................................................................... 19 3.4 软件测试 ............................................................................................................................................. 20

3.4.1测试平台 .................................................................................................................................. 20 3.4.2 软件安装 ................................................................................................................................. 20 3.4.3 程序运行情况 ......................................................................................................................... 21 3.5 本章小结 ............................................................................................................................................. 23 4 总结 ................................................................................................................................................................. 24

4.1 论文工作总结 ..................................................................................................................................... 24 4.2 问题与展望 ......................................................................................................................................... 24 参考文献 ............................................................................................................................................................. 26 致谢 ..................................................................................................................................................................... 27

1

华北电力大学本科毕业设计(论文)

1绪论

1.1课题背景

Android一词最早出现在法国作家威利耶德利尔·亚当的科幻小说中,作者将外表像人的机器称为“Android”[1]。它由四部分构成,分别如下;

(1)生命系统(平衡、步行、发声等)

(2)造型解质(关节能自由活动的金属覆盖体) (3)人造肌肉(有肌肉、静脉等人体特征) (4)人造皮肤(含有肤色、毛发等)

Andy Rubin创立了两个手机操作系统公司,分别是Danger和Android。Danger在2008年以5亿美元卖给Microsoft;Android与2005年卖给了Google。因此,Android系统一开始并不是由Google研发出来的。

2007年11月5日,Google正式发行了这款名为Android基于Linux平台的开源移动操作系统平台,并且在当天与34家手机制造商、软件开发商、电信运营商以及芯片制造商组成开放手持设备联盟(Open Handset Alliance)。该联盟将共同研发Android系统及其应用软件并生产Android系统的智能手机。而后,Google发布了第一个面向开发者的软件开发包(SDK)Android 1.0 beta,Android平台由操作系统、中间件、用户界面和应用软件组成,号称是首个为移动终端打造的真正开放和完整的移动软件平台[2]。

至此,Android进入世人的视野,也开始了一场移动互联网的伟大革命。

1.2 发展现状

作为当前最热门的移动应用操作系统之一,Android早在2012年就已经占据欧美市场超过50%的市场份额。而在国内,市场上采用Android系统的智能终端也在不断增多。

1.2.1 Android SDK发布里程碑

Android1.1

2008 年9月发布的Android第一版 Android1.5 Cupcake(纸杯蛋糕)

2009年4月30日,官方1.5版本(Cupcake:纸杯蛋糕)的Android发布。主要的更新如下;拍摄/播放影片,并支持上传到Youtube;支持立体声蓝牙耳机,同时改善自动配对性能;最新的采用WebKit技术的浏览器,支持复制/贴上和页面中搜索性能大大提高;提供屏幕虚拟键盘;主屏幕增加音乐播放器和相框widgets;应用程序自动随着手机旋转;短信、Gmail、日历,浏览器的用户接口大幅改进,如Gmail可以批量删除邮件;相机启动速度加快,拍摄图片可以直接上传到Picasa;来电照片显示;支持中文。

Android1.6 Donut(甜甜圈)

2009年9月15日,1.6(Donut;甜甜圈)版本软件开发工具包发布。主要的更新如下;重新设计的Android;Market手势;支持支持CDMA网络;文字转语音系统

1

本文来源:https://www.bwwdw.com/article/wy3v.html

Top