KJ音乐是一个Android手机端音乐播放器,最低支持3.0版本。
- blog:http://blog.kymjs.com
- QQ群:257053751(开发者群1),201055521(开发者群2)
- OSC GIT项目地址:http://git.oschina.net/kymjs/KJmusic
启动Eclipse,点击菜单并导入Android客户端项目,请确保你当前的Android SDK是最新版。
如果编译出错,请修改项目根目录下的 project.properties 文件。
推荐使用Android 4.0 以上版本的SDK,请使用JDK1.6编译:
target=android-17
本项目采用 GPL v2授权协议:
Copyright (C) 2014 Tao Zhang
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
根目录
├ src
├ libs
├ res
├ AndroidManifest.xml
├ LICENSE.txt
├ proguard.cfg
└ project.properties
下面是src目录的子目录(未来可能变更):
> src
> ├ org.kymjs.music
> ├ org.kymjs.music.ui
> ├ org.kymjs.music.ui.fragment
> ├ org.kymjs.music.ui.widget
> ├ org.kymjs.music.adapter
> ├ org.kymjs.music.utils
> ├ org.kymjs.music.bean
> ├ org.kymjs.music.service
> ├ org.kymjs.music.db
> └ org.kymjs.music.resolve
> └ org.kymjs.music.receiver
org.kymjs.music - APP启动及管理包
org.kymjs.music.ui - APP界面包
org.kymjs.music.ui.fragment - APP碎片界面
org.kymjs.music.ui.widget - APP自定义控件
org.kymjs.music.adapter - APP适配器包
org.kymjs.music.util - APP工具包,帮助类
org.kymjs.music.bean - APP实体类包
org.kymjs.music.service - APP所需服务
org.kymjs.music.db - APP数据库相关
org.kymjs.music.resolve - APP网络数据解析器
org.kymjs.music.inter - 所需接口包
org.kymjs.music.receiver - 接收全局广播
应用首次启动,将跳转至org.kymjs.music包下的AppStart,在载入动画和资源的同时判断是否为首次安装程序,之后跳转到相应的Activity(欢迎界面Welcome或主界面Main)。<br>
**1) 初始化控件**<br>
首页Activity(Main.java)在initWidget()方法里面加载布局文件(Main.xml),初始化底部栏bottomBar并设置点击事件监听。<br>
注:布局文件在/res/layout目录,点击事件监听器写在widgetClick()方法中。<br>
**2) 异步线程访问**<br>
**3) 解析数据显示**<br>
数据解析类统一写在resolve包下<br>