【编者按】:网学网自动化专业为您提供在线音乐播放器的编程实现参考,解决您在在线音乐播放器的编程实现学习中工作中的难题,参考学习。
论文编号:ZD991 论文字数:9696,页数:29
摘 要
随着移动设备的日益完善,我们大家都已经有了在手机上听自己喜欢歌曲的习惯,以往的做法是用数据线或者蓝牙等无线设备将电脑上的歌曲复制几首到手机中,反反复复的听,等到听厌了后,再次装一些歌曲进去,如此反复。但是这实在是太麻烦。我们试想,要是能在我们手机上在线听歌该有多好啊。但是在以前,这是很不现实的,困扰我们的有3大问题,网速太慢,流量太贵,没地方可以听歌,没有软件可以用。然而,现在随着3G在中国以及世界的普及,只要在手机上安装一款手机音乐软件,就能通过手机网络,随时随地让手机变身音乐魔盒,轻松收纳无数首歌曲,下载速度更快,耗费流量几乎可以忽略不计。本文设计的在线音乐播放器是基于Android平台开发的一款手机软件,用户通过此手机软件可直接登录互联网音乐网站选择在线收听歌曲。这种软件开发简单,使用方便快捷,必将成为未来几年的发展方向,具有普遍意义。
关键词: Android 、Eclipse、 在线音乐播放
Abstract
As mobile devices become increasingly perfect, we all have had the phone listening to our favorite songs of the Habit past, with Data line , Bluetooth and other wireless devices of computer put on the songs copied first into mobile phones, anti-repeated recovery of hearing, until''m tired again after loading some of the songs in, so repeatedly. But it is too cumbersome. We imagine that if the phone line in our songs the more wonderful. But in the past, this is very realistic, troubled by the problem that we have three great, speed is too slow, traffic is too expensive, no place to listen to songs, no software can be used. However, now, with the 3G in China and the popularity of the world, as long as the phone''s software is installed on a phone, you can phone network, anytime, anywhere mobile transfiguration Music Box to easily incorporate numerous songs, download faster , cost flow is almost negligible. This design of the online music player is based on the Android platform for the development of a mobile phone software, users can directly log on to this mobile phone software internet music sites choose to listen to songs online. This software is simple, easy to use fast, the next few years will become the development direction of universal significance.
Keywords:Android、 Eclipse 、Online music player
目 录
摘要…………………………………………………………………………… ………….I
1 前言………………………………………………………………………………………. 1
2Andriod平台的搭建…………………………………………………………………… 2
2.1JDK . Eclipse. AndriodSDK软件的安装………………………………………………2
2.2 软件安装 ……………………………………………………………………. .4
2.3 Eclipse配置 ………………………………………………………………. . 6
3 构架设计及编程实现 ……………………………………………… …………8
3.1 在线音乐播放器的构架设计 …………………………………………………………. 8
3.1.1 在线音乐播放器的功能规划设计…………………………………………9
3.1.2 在线音乐播放器的UI设计………………………………………………… 9
3.1.3在线音乐播放器的数据存储设计…………………………………………… 10
4 在线播放器的编程实现 ……………………………………………………………11
4.1 申请API KEY…………………………………………………………………………11
4.2 基础功能实现………………………………………………………………………11
4.2.1 签名算法………………………………………………………………….12
4.2.2 数据的提交和接收……………………………………………………….12
4.2.3 数据的解析……………………………………………………………….12
4.2.4 显示网络上图片………………………………………………………………13
4.3 实现Activity………………………………………………………………………….14
5 实现Service………………………………………………………………………. . ……21
5.1 编写AIDL文件………………………………………………………………………21
5.2 实现接口方法………………………………………………………………………22
5.3 把功能串起来………………………………………………………………………22
6 系统的调试……………………………………………………………………………22
6.1 在线音乐播放器应用演示………………………………………………………23
6.2 播放器的打包,签名和发布……………………………………………………23
7 总结………………………………………………………………………………………. 23
7.1 感想和总结………………………………………………………………………. 23
7.2主要参考文献…………………………………………………………………………24
致谢………………………………………………………………………………………….25