有解压软件,类似于电脑上的解压软件。在安卓市场自己找一下,按分类很容易找到。
❷ 手机解压软件有哪些
1、安卓解压
安卓解压是一款稳定、快速、高效的压缩与解压工具,是一款rar解压利器, 支持zip,7-zip,rar,tar等主流压缩格式,支持加密文件解压与压缩,解压中文无乱码,增加简单文件管理功能。
文件压缩率取决于多种因素,包括文件类型、文件大小和压缩方案。
对于包含大量不重复信息的文件(例如图像或MP3文件),则不能使用这种机制来获得很高的压缩率,因为它们不包含重复多次的模式。
此外文件压缩效率还取决于压缩程序使用的具体算法。有些程序能够在某些类型的文件中更好地寻找到模式,因此能更有效地压缩这些类型的文件。
其他一些压缩程序在字典中又使用了字典,这使它们在压缩大文件时表现很好,但是在压缩较小的文件时效率不高。
❸ android中如何代码压缩音频视频文件呢
知道怎么压缩文件,音视频文件应该差不多吧O.O
package com.once;
import java.io.*;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Enumeration;
import java.util.zip.ZipEntry;
import java.util.zip.ZipException;
import java.util.zip.ZipFile;
import java.util.zip.ZipOutputStream;
/**
* Java utils 实现的Zip工具
*
* @author once
*/
public class ZipUtils {
private static final int BUFF_SIZE = 1024 * 1024; // 1M Byte
/**
* 批量压缩文件(夹)
*
* @param resFileList 要压缩的文件(夹)列表
* @param zipFile 生成的压缩文件
* @throws IOException 当压缩过程出错时抛出
*/
public static void zipFiles(Collection<File> resFileList, File zipFile) throws IOException {
ZipOutputStream zipout = new ZipOutputStream(new BufferedOutputStream(new FileOutputStream(
zipFile), BUFF_SIZE));
for (File resFile : resFileList) {
zipFile(resFile, zipout, "");
}
zipout.close();
}
/**
* 批量压缩文件(夹)
*
* @param resFileList 要压缩的文件(夹)列表
* @param zipFile 生成的压缩文件
* @param comment 压缩文件的注释
* @throws IOException 当压缩过程出错时抛出
*/
public static void zipFiles(Collection<File> resFileList, File zipFile, String comment)
throws IOException {
ZipOutputStream zipout = new ZipOutputStream(new BufferedOutputStream(new FileOutputStream(
zipFile), BUFF_SIZE));
for (File resFile : resFileList) {
zipFile(resFile, zipout, "");
}
zipout.setComment(comment);
zipout.close();
}
/**
* 解压缩一个文件
*
* @param zipFile 压缩文件
* @param folderPath 解压缩的目标目录
* @throws IOException 当解压缩过程出错时抛出
*/
public static void upZipFile(File zipFile, String folderPath) throws ZipException, IOException {
File desDir = new File(folderPath);
if (!desDir.exists()) {
desDir.mkdirs();
}
ZipFile zf = new ZipFile(zipFile);
for (Enumeration<?> entries = zf.entries(); entries.hasMoreElements();) {
ZipEntry entry = ((ZipEntry)entries.nextElement());
InputStream in = zf.getInputStream(entry);
String str = folderPath + File.separator + entry.getName();
str = new String(str.getBytes("8859_1"), "GB2312");
File desFile = new File(str);
if (!desFile.exists()) {
File fileParentDir = desFile.getParentFile();
if (!fileParentDir.exists()) {
fileParentDir.mkdirs();
}
desFile.createNewFile();
}
OutputStream out = new FileOutputStream(desFile);
byte buffer[] = new byte[BUFF_SIZE];
int realLength;
while ((realLength = in.read(buffer)) > 0) {
out.write(buffer, 0, realLength);
}
in.close();
out.close();
}
}
/**
* 解压文件名包含传入文字的文件
*
* @param zipFile 压缩文件
* @param folderPath 目标文件夹
* @param nameContains 传入的文件匹配名
* @throws ZipException 压缩格式有误时抛出
* @throws IOException IO错误时抛出
*/
public static ArrayList<File> upZipSelectedFile(File zipFile, String folderPath,
String nameContains) throws ZipException, IOException {
ArrayList<File> fileList = new ArrayList<File>();
File desDir = new File(folderPath);
if (!desDir.exists()) {
desDir.mkdir();
}
ZipFile zf = new ZipFile(zipFile);
for (Enumeration<?> entries = zf.entries(); entries.hasMoreElements();) {
ZipEntry entry = ((ZipEntry)entries.nextElement());
if (entry.getName().contains(nameContains)) {
InputStream in = zf.getInputStream(entry);
String str = folderPath + File.separator + entry.getName();
str = new String(str.getBytes("8859_1"), "GB2312");
// str.getBytes("GB2312"),"8859_1" 输出
// str.getBytes("8859_1"),"GB2312" 输入
File desFile = new File(str);
if (!desFile.exists()) {
File fileParentDir = desFile.getParentFile();
if (!fileParentDir.exists()) {
fileParentDir.mkdirs();
}
desFile.createNewFile();
}
OutputStream out = new FileOutputStream(desFile);
byte buffer[] = new byte[BUFF_SIZE];
int realLength;
while ((realLength = in.read(buffer)) > 0) {
out.write(buffer, 0, realLength);
}
in.close();
out.close();
fileList.add(desFile);
}
}
return fileList;
}
/**
* 获得压缩文件内文件列表
*
* @param zipFile 压缩文件
* @return 压缩文件内文件名称
* @throws ZipException 压缩文件格式有误时抛出
* @throws IOException 当解压缩过程出错时抛出
*/
public static ArrayList<String> getEntriesNames(File zipFile) throws ZipException, IOException {
ArrayList<String> entryNames = new ArrayList<String>();
Enumeration<?> entries = getEntriesEnumeration(zipFile);
while (entries.hasMoreElements()) {
ZipEntry entry = ((ZipEntry)entries.nextElement());
entryNames.add(new String(getEntryName(entry).getBytes("GB2312"), "8859_1"));
}
return entryNames;
}
/**
* 获得压缩文件内压缩文件对象以取得其属性
*
* @param zipFile 压缩文件
* @return 返回一个压缩文件列表
* @throws ZipException 压缩文件格式有误时抛出
* @throws IOException IO操作有误时抛出
*/
public static Enumeration<?> getEntriesEnumeration(File zipFile) throws ZipException,
IOException {
ZipFile zf = new ZipFile(zipFile);
return zf.entries();
}
/**
* 取得压缩文件对象的注释
*
* @param entry 压缩文件对象
* @return 压缩文件对象的注释
* @throws UnsupportedEncodingException
*/
public static String getEntryComment(ZipEntry entry) throws UnsupportedEncodingException {
return new String(entry.getComment().getBytes("GB2312"), "8859_1");
}
/**
* 取得压缩文件对象的名称
*
* @param entry 压缩文件对象
* @return 压缩文件对象的名称
* @throws UnsupportedEncodingException
*/
public static String getEntryName(ZipEntry entry) throws UnsupportedEncodingException {
return new String(entry.getName().getBytes("GB2312"), "8859_1");
}
/**
* 压缩文件
*
* @param resFile 需要压缩的文件(夹)
* @param zipout 压缩的目的文件
* @param rootpath 压缩的文件路径
* @throws FileNotFoundException 找不到文件时抛出
* @throws IOException 当压缩过程出错时抛出
*/
private static void zipFile(File resFile, ZipOutputStream zipout, String rootpath)
throws FileNotFoundException, IOException {
rootpath = rootpath + (rootpath.trim().length() == 0 ? "" : File.separator)
+ resFile.getName();
rootpath = new String(rootpath.getBytes("8859_1"), "GB2312");
if (resFile.isDirectory()) {
File[] fileList = resFile.listFiles();
for (File file : fileList) {
zipFile(file, zipout, rootpath);
}
} else {
byte buffer[] = new byte[BUFF_SIZE];
BufferedInputStream in = new BufferedInputStream(new FileInputStream(resFile),
BUFF_SIZE);
zipout.putNextEntry(new ZipEntry(rootpath));
int realLength;
while ((realLength = in.read(buffer)) != -1) {
zipout.write(buffer, 0, realLength);
}
in.close();
zipout.flush();
zipout.closeEntry();
}
}
}
❹ 谁有MP3压缩软件,只要把体积压到最小,不用考虑音质问题
不需要其他软件任何转换软件都可以比如说千千静听就可以在转换城MP3的时候点击选项里面把码率降低越低占用空间越小,当然降低的品质也就越多,你既然说无视品质了就直接降低到你所能播放的最小码率即可,还有采样率也同样影响到空间。
❺ 如何将MP3文件打包到android APK中
开发程序时一般会将视频音频等文件放在assets、或raw下,但在2.3以前会有文件大小的限制,最大不能超过1M。如果在2.2的系统里想放超大文件该怎么办呢,,,我这有个方法(我也是在搜遍了整个互联网,啥也没找到的情况下自己摸索出来的)。可以将超大文件比如100M,放在src目录下,例如:
。
然后使用以下代码复制到SD卡下,就可以使用了(解压缩的代码网上一大堆,这里就不提供了),
String path = "org/cocos2dx/util/html.zip"; //数据存放的路径
InputStream is = mContext.getClassLoader().getResourceAsStream(path);
FileOutputStream out = new FileOutputStream("sdcard/liangzi/html.zip");//复制到SD卡下的路径
int data = 0;
byte[] buffer = new byte[1024];
while((data = is.read(buffer)) != -1){
out.write(buffer, 0, data);
}
is.close();
out.close(); 此代码最好放在线程中异步进行。不然就卡那去啦。。
❻ 哪款安卓音乐播放软件可以直接播放压缩文件里的音乐(包括mp3和无损)
因为大多数的手机音乐播放器都不会支持flac无损文件,一般的软件你在安卓商店里看看,有个叫全能播放器的,它可以支持
❼ 怎么用手机把手机里的视频转换成mp3音乐(手机,不是电脑)
将视频文件转换为MP3音频文件:
1、在手机应用商店中下载VidTrim。
❽ 安卓手机上压缩/解压缩文件有哪些软件
一、安卓手机可以对.rar后缀的压缩包文件进行解压,具体步骤如下:
在网站上查找“安卓解压软件”。
下载并安装解压apk程序。
安装后,在手机“文件管理”中找到需解压的文件,点击后进行解压或长按需解压的文件,选择解压软件进行解压。
二、压缩软件进行解压的原理就是把二进制信息中相同的字符串以特殊字符标记来达到压缩的目的。
三、解压:将压缩文件还原为本来的文件格式,也称释放、扩展。
四、压缩包:一般将通用压缩格式的文件称为压缩包,如ZIP格式压缩文件。这种文件可以在压缩工具的管理下对包中压缩的文件进行管理,如查看、删除、添加等。
压缩文件有很多格式,目前主要是:.ZIP,.RAR,.ARJ,.CAB
❾ 怎么压缩手机MP3格式的音乐
大家下载到电脑后安装,然后就可以进入在桌面生成的图标:Lame图形界面
MP3压缩
器
打开后选择要压缩的MP3文件(选择输入文件),然后在输出文件的一栏(选择输出文件)里把储存
路径改为和输出文件路径一样,然后在文件名前加点东西,随便加什么内容,只要不重名,重名也
得。。但是原先的会被覆盖,接着把比特率一项选到80
KBps,再选到-高品质压缩(速度较慢)这项
,其他的设置不用改。。然后点开始编码。。压缩完后去目录里看看你压缩过的MP3再听听看。。所
占空间小了一倍,但是音质基本听不出变化。。比特率最小只能选到80,再小就认不出来了,压了也没用