精品文档---下载后可任意编辑摘要:移动互联网进展瞬息万变,以往的随身听、MP3 等千篇一律的播放设备已经越来越难以满足人们多样化的听音乐需求了,而市面上的音乐播放器 APP 却深陷商业的漩涡,盈利和用户体验总是难以成正比,看似琳琅满目的音乐应用却没有几款真正让用户喜爱的。在这样的背景下,课题基于 Android 开源平台,使用 Java 语言开发,采纳 Android Studio + Gradle 工具构建,并依靠 OkHttp+Gson 提供网络框架,开发了一款 Android 在线音乐播放器。播放器支持播放在线音乐,上一曲、下一曲,切换播放模式,支持歌词与专辑封面显示,支持搜索、下载在线歌曲等基本功能,并扩展实现了夜间模式,定时关闭等功能,致力于给用户提供更舒心的听歌体验。论文给出详细的框架设计,系统流程设计,部分设计图及主要功能运行流程图,并对开发中遇到的主要问题进行了详细讨论,如通过 Activity 和 Service 通信实现后台播放。经过系统测试,系统实现了基本功能和扩展功能,性能达到了一定的指标。关键词:在线音乐;播放器;定时关闭;Gradle;OkHttpDesign and Implementation of Android-based Online Music PlayerAbstract: The development of mobile Internet is constantly changing, the previous Walkman, MP3 player and other devices have been stereotyped increasingly difficult to meet people's demand for a variety of music, and the music player market, APP has deep whirlpool business, earnings and proportional to the user experience 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 framework, 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...