Android 从本地服务器下载文件与解析过程详解(五)
来源:互联网 发布:linux 发送http请求 编辑:程序博客网 时间:2024/06/15 01:40
(4)、数据部分代码:
java代码:
package com.pisces.model;
public class Mp3Info {
private String id;
private String mp3Name;
private String mp3Size;
private String lrcName;
private String lrcSize;
public Mp3Info() {
super();
}
public Mp3Info(String id, String mp3Name, String mp3Size, String lrcName,String lrcSize) {
super();
this.id = id;
this.mp3Name= mp3Name;
this.mp3Size= mp3Size;
this.lrcName= lrcName;
this.lrcSize= lrcSize;
}
public String getId() {
return id;
}
@Override
public String toString() {
return "Mp3Info [id="+ id + ", lrcName="+ lrcName + ", lrcSize="
+ lrcSize + ", mp3Name="+ mp3Name + ", mp3Size="+ mp3Size + "";
}
public void setId(String id) {
this.id = id;
}
public String getMp3Name() {
return mp3Name;
}
public void setMp3Name(String mp3Name) {
this.mp3Name= mp3Name;
}
public String getMp3Size() {
return mp3Size;
}
public void setMp3Size(String mp3Size) {
this.mp3Size= mp3Size;
}
public String getLrcName() {
return lrcName;
}
public void setLrcName(String lrcName) {
this.lrcName= lrcName;
}
public String getLrcSize() {
return lrcSize;
}
public void setLrcSize(String lrcSize) {
this.lrcSize= lrcSize;
}
}
4、为应用程序添加相应的权限:
<uses-permission android:name="android.permission.INTERNET"/>
java代码:
package com.pisces.model;
public class Mp3Info {
private String id;
private String mp3Name;
private String mp3Size;
private String lrcName;
private String lrcSize;
public Mp3Info() {
super();
}
public Mp3Info(String id, String mp3Name, String mp3Size, String lrcName,String lrcSize) {
super();
this.id = id;
this.mp3Name= mp3Name;
this.mp3Size= mp3Size;
this.lrcName= lrcName;
this.lrcSize= lrcSize;
}
public String getId() {
return id;
}
@Override
public String toString() {
return "Mp3Info [id="+ id + ", lrcName="+ lrcName + ", lrcSize="
+ lrcSize + ", mp3Name="+ mp3Name + ", mp3Size="+ mp3Size + "";
}
public void setId(String id) {
this.id = id;
}
public String getMp3Name() {
return mp3Name;
}
public void setMp3Name(String mp3Name) {
this.mp3Name= mp3Name;
}
public String getMp3Size() {
return mp3Size;
}
public void setMp3Size(String mp3Size) {
this.mp3Size= mp3Size;
}
public String getLrcName() {
return lrcName;
}
public void setLrcName(String lrcName) {
this.lrcName= lrcName;
}
public String getLrcSize() {
return lrcSize;
}
public void setLrcSize(String lrcSize) {
this.lrcSize= lrcSize;
}
}
4、为应用程序添加相应的权限:
<uses-permission android:name="android.permission.INTERNET"/>
- Android 从本地服务器下载文件与解析过程详解(五)
- Android 从本地服务器下载文件与解析过程详解(一)
- Android 从本地服务器下载文件与解析过程详解(二)
- Android 从本地服务器下载文件与解析过程详解(三)
- Android 从本地服务器下载文件与解析过程详解(四)
- Android 图片获取:从服务器下载与缓存本地
- Java 从服务器下载文件到本地
- Java 从服务器下载文件到本地
- Java从服务器下载文件到本地
- Android 从服务器下载文件
- Android 从服务器下载文件
- Android 从服务器下载文件
- Android从服务器下载文件
- 上传文件到服务器,从服务器下载文件到本地
- 从远程服务器下载文件到本地服务器
- scp从服务器下载文件到本地或从本地上传文件到服务器
- 从Azure虚拟机下载文件到本地五种方法
- Android 开发XML解析,从服务器下载
- Android 从本地服务器下载文件与解析过程详解(三)
- 从数字列表中,任意三个相加为指定值的所有组合
- 初识Oracle
- Android 从本地服务器下载文件与解析过程详解(四)
- Hibernate N+1 问题
- Android 从本地服务器下载文件与解析过程详解(五)
- PHP生成对象的模式
- C语言实现的通讯录例子
- 实现中序线索化二叉树
- ORACLE日期时间处理
- 獲取用戶語言配置信息
- Netty框架代码(源码)客户端与服务器
- tomcat_设置项目根路径为tomcat
- 三大WEB服务器对比分析(apache ,lighttpd,nginx)