摘 要
3G 时代已经慢慢的融入了我们的日常生活,随着国家的通信政策以及各大运营
商的宣传的影响,3G 手机已经随处可见,面对全球信息、技术空前高速发展,
信息高速化发展更是社会进步的一个标志。在全球信息化的今天,手机已经成为
人们日常生活中不可缺少的一部分,尤其是在电子产品日新月异的今天,我们在
平时随处可见的电子产品中,手机无疑是一个最大的用户集,而各大厂商智能手
机则依旧是电子市场的一颗耀眼的明星。其中的代表作有诺 Nokia 的塞班系统,
摩托罗拉的 Linux 系统,但是其中异军突起的仍然是 Google 的 Andriod 系统以
其开放的源代码和方便简洁的操作必然是未来智能手机领域的领头羊。这次毕业
设计我们选择音乐播放器一定会使我们在以后的工作中提供更多的机会。
随着新技术的不断开发与应用,近年来 Java 技术发展十分迅速,一个以 Java 应
用为主的新技术革命浪潮正在蓬勃兴起。而基于 Andriod 的软件开发是一个前景
很大的技术,通过这次毕业设计,能使我们从对软件的设计中体会到实际中软件
开发的过程,提高我们的专业能力,最终能够获得很强的专业知识。
关键词:Android 音乐播放器,Android 平台,Java 技术
Abstract
3G era has gradually integrated into our daily life, with the country's
communication policy as well as the major carriers of sensitization to
the effects of3G mobile phone, can be seen everywhere, in the face of the
global information technology, an unprecedented rapid development, the
information high speed development is a symbol of social advancement. In
the global information technology today, mobile phone has become
indispensable in the daily life of a part, especially in electronic
products change rapidly today, we usually can be seen everywhere in the
electronic products, mobile phone is undoubtedly one of the largest user
sets, and major manufacturers of intelligent mobile phone will still be
electronic market a dazzling star. The representative of Connaught Nokia
Symbian, the Motorola Linux system, but which is still a new force suddenly
rises. Google Andriod system for its open source code and convenient and
simple operation is the future leader in the field of intelligent mobile
phone. This time graduate the design we choose based on the Andriod mobile
phone games will make our work in the future to provide more opportunities.
With the new technology development and application, in recent years the
development of Java technology is very rapid, a Java application of tide
of new technology revolution is booming. Andriod based software
development is a great prospect of technology, through this graduation
design, can make us from on the software design of the actual software
development process, improve our professional skills, can finally obtain
strong professional knowledge.
Key words: Android mobile phone; the Android platform;
目录
摘 要 ....................................................1
Abstract ..................................................2
目录 ......................................................3
第 1 章 Android 概述 .......................................5
1.1 Android 的前世今生 .................................5
1.1.1 Android 的产生 .........................................5
1.1.2 Android 的发展 .........................................6
1.2 Android 的平台架构 .................................6
1.3 内核层 .............................................7
1.4 Android Runtime 和函数库层 .........................7
1.4.1 函数库 .................................................7
1.4.2 Android Runtime........................................8
1.5 Dalvik 虚拟机 ......................................9
1.6 Android 的进程管理机制 ............................11
1.7 应用程序框架层 ....................................12
1.8 应用程序层 ........................................13
2 Android 的应用 .........................................13
2.1 Android 应用的组成 ................................13
2.2 Activity ..........................................13
2.3 Intent Receiver ...................................13
2.4 Service ...........................................14
2.5 Content Provider ..................................14
2.6 AndroidManifest.xml ...............................14
第 2 章 需求分析、模块设计................................17
2.1 需求分析 ..........................................17
2.1.1 安卓音乐播放器 ........................................17
2.1.2 Android 系统概述 ......................................18
2.2 程序的模块结构 ....................................18
2.2.1 程序的建立............................................18
第 3 章 系统采用关键技术..................................24
第 4 章 总结..............................................26
参考文献 .................................................27
致 谢 .................................................28
第 1 章 Android 概述
1.1 Android 的前世今生
1.1.1 Android 的产生
手机,没有一个人会感到陌生。近几年来一个名词一直影响着许许多多的手机用
户,它就是智能手机。智能手机凭借其强大的功能吸引住了许多用户的眼球,因
为有了广大的用户基础,智能手机也风靡一时。说起智能手机,除了他有一颗强
大的 CPU 和其他一些较高配置的硬件外,其真正的智能还要归功于其不可缺少的
智能操作系统。
当今,智能手机所搭载的智能手机操作系统平台大致如下:
(1)Symbian OS。搭载在具有广泛群众基础的 Nokia 手机上,并以此占据了智
能手机的半壁江山,其主要的智能平台为大部分诺基亚手机搭载的的 S60 系列和
索尼爱立信手机搭载的 UIQ 系列;
(2)Windows Mobile。Microsoft 在桌面系统获得成功之后,觊觎手机的巨大市
场开发的智能手机系统,因其界面和桌面 windows 系统较为接近和其强大的微软
后台,成为国内市场占有率紧跟 Symbian 之后成为国人比较喜欢的操作系统;
(3)Mac OS X(iPhone OS)。苹果一直都是个性和时尚的代名词,受广大中高层
次手机用户的喜欢。iPhone,以其酷炫的 UI 和独特的操作方式,给传统手机带
来一场革命,同时也给 Symbian 和 Windows Mobile 带来巨大冲击的;
(4)Blackberry。以商务应用为主,在国外尤其是欧美等地,受到商务人士欢
迎的 Black Barry 占据了近一半的无线商务电子邮件业务市场,就连美国总统奥
巴马也使用该品牌的手机。但是在国内还是受到一些基础设施的制约,所以在国
内市场不是太好;
(5)Palm OS。专门为 PDA 开发,一度占据了 90%的 PDA 市场的份额,虽然其并
不专门针对于手机设计,但是以其优秀性和对移动设备的支持同样使其能够成为
一个优秀的手机操作系统。
(6)Linux。对于 Linux 系统,想必很多人都不会太陌生,桌面系统中以其开源
的特性,赢得了不少用户的喜爱。智能手机平台的 Linux 同样具有源代码开放、
软件授权费用低、应用开发人才资源丰富等优点,便于开发个人和行业应用。但
是因为其平台上的应用少而不被国人所接受。
(7)Google Android。自 2007 年推出,2008 年第一部搭载 Android 系统的 G1
上市至今不到短短三年时间,他已被许多人接受并且认可及欢迎。
虽然如今的智能手机系统市场仍被 Symbian、Windows Mobile 的占领,但是
iPhone 的革命以后,以及后起之秀 Android 的推出,在将来,智能手机市场将
发生翻天覆地的变化。