Android网络收音机项目(源码实例分享)

NEON: for ARMv7 devices with NEON support (Market, VOV)

具体可以上http://vov.io/vitamio/看一下,我的烂手机是VFP这个版本的。

开始前的准备,你最好在上面的官网上下载一份API看看:Vitamio-SDK.7z。SDK里面还有vitamio.jar这个jar文件,里面有流媒体的控制类。OK废话不多说,上代码(导jar包相信大家都了然,这里不作介绍):

AndroidManifest文件


<?xml version="1.0" encoding="utf-8"?

<manifest xmlns:android=[http://schemas.android.com/apk/res/android]http://schemas.android.com/apk/res/android]( )

package="com.netradiodemo"

android:versionCode="1"

android:versionName="1.0">

<uses-sdk android:minSdkVersion="10" />

<uses-permission android:name="android.permission.INTERNET"></uses-permission> 

<application android:icon="@drawable/icon" android:label="@string/app_name"

android:theme="@android:style/Theme.Black">

<activity android:name=".NetRadioDemoActivity" 

android:label="@string/app_name">

<intent-filter> 

<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />

</intent-filter>

</activity>

<activity android:name=".compnents.PlayerActivity"></activity> 

</application>

</manifest>





主页面布局文件main未修改,播放页面布局文件如下play_page


<?xml version="1.0" encoding="utf-8"?>



<LinearLayout xmlns:android=[http://schemas.android.com/apk/res/android\]http://schemas.android.com/apk/res/android]( )

android:orientation\="vertical" 

android:layout\_width\="fill\_parent"

android:layout\_height\="fill\_parent" 

>

<Button 

android:id\="@+id/btn\_start"

android:layout\_gravity\="center\_horizontal"

android:layout\_width\="match\_parent" 

android:layout\_height\="wrap\_content" 

android:text\="听猫扑" 

android:textSize\="30sp" 

android:onClick\="doStart" 

/>

<Button 

android:id\="@+id/btn\_stop"

android:layout\_gravity\="center\_horizontal"

android:layout\_width\="match\_parent"

android:layout\_height\="wrap\_content"

android:text\="不听猫扑"

android:textSize\="30sp"

android:onClick\="doStop"

/>

</LinearLayout>

**第一个activity代码,主要负责检查插件NetRadioDemoActivity

Java代码**


package com.netradiodemo;



import io.vov.vitamio.VitamioInstaller;

import io.vov.vitamio.VitamioInstaller.VitamioNotCompatibleException;

import io.vov.vitamio.VitamioInstaller.VitamioNotFoundException;

import android.app.Activity;

import android.content.Intent; 

import android.os.Bundle; 

import android.util.Log; 

import android.view.View;

import android.view.View.OnClickListener;

import android.widget.Button;

import android.widget.LinearLayout.LayoutParams;

import android.widget.TextView;

import android.widget.Toast;

import com.netradiodemo.compnents.PlayerActivity;



public class NetRadioDemoActivity extends Activity {

Intent intent ;



@Override

public void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.main);

intent \= new Intent(this, PlayerActivity.class);

TextView tvCheck \= new TextView(this);

tvCheck.setText("使用前请检查是否安装了Vitamio插件:");



**自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。**

**深知大多数Android工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则几千的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!**

**因此收集整理了一份《2024年Android移动开发全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。**
![img](https://img-blog.csdnimg.cn/img_convert/6b7c1e2d636a99b6ce6f95a76f18690e.png)
![img](https://img-blog.csdnimg.cn/img_convert/60e862f86b52fc95d0d11edcc81a86f4.png)
![img](https://img-blog.csdnimg.cn/img_convert/32b7b12fc862825f8b22c4100688a644.png)
![img](https://img-blog.csdnimg.cn/img_convert/212d47f6035f81dd3beae8d5d74ccbf0.png)
![img](https://img-blog.csdnimg.cn/img_convert/e99f2f04502799c02d3bb9384de37472.png)
![img](https://img-blog.csdnimg.cn/img_convert/116eca33ed0beae824eff813ee05b606.png)
![img](https://img-blog.csdnimg.cn/13f2cb2e05a14868a3f0fd6ac81d625c.png)

**既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上Android开发知识点,真正体系化!**

**由于文件比较大,这里只是将部分目录大纲截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且后续会持续更新**

**如果你觉得这些内容对你有帮助,可以添加V获取:vip204888 (备注Android)**
![img](https://img-blog.csdnimg.cn/img_convert/358c17f0b45ff8e949b9e0a11a4da048.png)



## 最后

以前一直是自己在网上东平西凑的找,找到的东西也是零零散散,很多时候都是看着看着就没了,时间浪费了,问题却还没得到解决,很让人抓狂。

后面我就自己整理了一套资料,还别说,真香!

资料有条理,有系统,还很全面,我不方便直接放出来,大家可以先看看有没有用得到的地方吧。

![系列教程图片](https://img-blog.csdnimg.cn/img_convert/0e7f7e235c86d9a4c8eff1bc9b8aa77a.webp?x-oss-process=image/format,png)


![2020Android复习资料汇总.png](https://img-blog.csdnimg.cn/img_convert/9327d16bdd0e60f1312b7e10aa9101ce.webp?x-oss-process=image/format,png)

![flutter](https://img-blog.csdnimg.cn/img_convert/9a7c989bfd57fa72be6a15710086590c.webp?x-oss-process=image/format,png)

![NDK](https://img-blog.csdnimg.cn/img_convert/5b6f71bee86b637d17b961e1a96bf59b.webp?x-oss-process=image/format,png)

![设计思想开源框架](https://img-blog.csdnimg.cn/img_convert/bdbc3d65b07c959c36a5f4a2fe72894d.webp?x-oss-process=image/format,png)

![微信小程序](https://img-blog.csdnimg.cn/img_convert/e51a81883c0be48db6a21632b933c7dd.webp?x-oss-process=image/format,png)

11)]


[外链图片转存中...(img-qAPq1RP3-1711864061811)]

[外链图片转存中...(img-vFKaU2Qj-1711864061812)]

[外链图片转存中...(img-Q8reLfoK-1711864061812)]

[外链图片转存中...(img-ie6dfrb6-1711864061812)]

[外链图片转存中...(img-40QmiO5H-1711864061813)]

> **本文已被[CODING开源项目:《Android学习笔记总结+移动架构视频+大厂面试真题+项目实战源码》]( )收录**
  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值