# aggregationProject聚合项目 **Repository Path**: smarkWzp/aggregationProject ## Basic Information - **Project Name**: aggregationProject聚合项目 - **Description**: Android聚合项目,包含自定义分享模块、自定义音频播放模块、okhttp的封装模块、加载图片工具模块、app保活模块、自定义视频模块等 - **Primary Language**: Java - **License**: MulanPSL-1.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-01-14 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # aggregationProject聚合项目 #### 介绍 Android聚合项目,包含自定义分享模块、自定义音频播放模块、okhttp的封装模块、加载图片工具模块、app保活模块、自定义视频模块等 #### 软件架构 分模块开发、实现0耦合项目,企业级开发方式 #### 使用说明 sk_audio :音频模块,实现音乐服务,完全接口,简单使用,、包含自定义view 底部音乐栏BottomMusicView、仿网易云音乐播放页面MusicPlayerActivity: AudioHelper.init(this);//音频SDK初始化 AudioHelper.startMusicService(audioBeans);//启动音乐服务 内含自定义通知及各个手机状态下的音乐播放处理 sk_imageload: 图片加载模块,暂时只加入glide ,后续更新、使用: ImageGlide.getInstance().displayImageForView(imageview,url) sk_network: okhtt封装,使用: SokHttp.get(SokRequest. createGetRequest(url, params), new DisposeDataHandle(listener, clazz)); sk_pullalive:app保活service :继承JobService封装 使用方式: AliveJobService.start(this) sk_share:自定义分享模块,内部使用的是三方分享ShareSdk 只需在gradle.build内替换自己的appkey 和appSecret便可,调用方式: ShareDialog dialog = new ShareDialog(MusicPlayerActivity.this,false); dialog.setShareText(name); dialog.setUrl(url); dialog.show(); sk_video:自定义封装视频模块,有点问题,后续有时间修改: //视频SDK初始化 VideoHelper.init(this); //动态添加 RelativeLayout videoGroup = findViewById(R.id.video_layout); VideoAdContext mAdsdkContext = new VideoAdContext(videoGroup, "https://www.apple.com/105/media/cn/iphone-x/2017/01df5b43-28e4-4848-bf20-490c34a926a7/films/feature/iphone-x-feature-cn-20170912_1280x720h.mp4"); #### 码云特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目 5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)