1、 Android 在线音乐播放器设计与实现 摘要:移动互联网发展瞬息万变,以往的随身听、MP3 等千篇一律的播放设备已经越来 越难以满足人们多样化的听音乐需求了,而市面上的音乐播放器 APP 却深陷商业的漩 涡,盈利和用户体验总是难以成正比,看似琳琅满目的音乐应用却没有几款真正让用户 喜欢的。 在这样的背景下, 课题基于 Android 开源平台, 使用 Java 语言开发, 采用 Android Studio + Gradle 工具构建,并依靠 OkHttp+Gson提供网络框架,开发了一款 Android 在 线音乐播放器。播放器支持播放在线音乐,上一曲、下一曲,切换播放模式,支持歌词 与
2、专辑封面显示,支持搜索、下载在线歌曲等基本功能,并扩展实现了夜间模式,定时 关闭等功能,致力于给用户提供更舒心的听歌体验。论文给出详细的框架设计,系统流 程设计,部分设计图及主要功能运行流程图,并对开发中遇到的主要问题进行了详细讨 论,如通过 Activity和 Service 通信实现后台播放。经过系统测试,系统实现了基本功能 和扩展功能,性能达到了一定的指标。 关键词:在线音乐;播放器;定时关闭;Gradle;OkHttp Design and Implementation of Android-based Online Music Player Abstract: The develop
3、ment of mobile Internet is constantly changing, the previous Walkman, MP3 player and other devices have been stereotyped increasingly difficult to meet peoples demand for a variety of music, and the music player market, APP has deep whirlpool business, earnings and proportional to the user experienc
4、e is always difficult, seemingly dazzling music application did not allow several users to really like it. In this context, an object based on the Android open source platform developed using the Java language, using Android Studio + Gradle build tool, and rely OkHttp + Gson provide network framewor
5、k, developed an Android online music player. Player supports playback of online music, the song, the next song, switch the playback mode, support for lyrics and album art display, supports searching, downloading songs online and other basic functions, and expanded to achieve a night mode, time off a
6、nd other functions, is committed to to provide a more enjoyable experience of listening to music. Paper gives a detailed framework design, system design process, part of the design and operation of the main function of a flow chart, and the development of the main problems encountered were discussed in detail, for example, by Activity and Service Communication between Play in background. After testing the system, the system to achieve the basic functions and extensions, reach a ce