当前位置: 编程技术>移动开发
本页文章导读:
▪反编译apk步骤【转】 反编译apk方法【转】
http://www.newwhy.com/2010/0926/18312.html
......
▪ zip解压缩的应用 zip解压缩的使用
android中的解压缩方式和java中是一样的。以下为解压缩的方法代码
public void Ectract(String sZipPathFile, String sDestPath)
{
try {
// 先指定压缩档的位置和档名,.........
▪ 手机银幕适配 手机屏幕适配
地址:http://www.537520.com/?p=762
......
[1]反编译apk步骤【转】
来源: 互联网 发布时间: 2014-02-18
反编译apk方法【转】
http://www.newwhy.com/2010/0926/18312.html
http://www.newwhy.com/2010/0926/18312.html
[2] zip解压缩的应用
来源: 互联网 发布时间: 2014-02-18
zip解压缩的使用
android中的解压缩方式和java中是一样的。以下为解压缩的方法代码
public void Ectract(String sZipPathFile, String sDestPath)
{
try {
// 先指定压缩档的位置和档名,建立FileInputStream对象
FileInputStream fins = new FileInputStream(sZipPathFile);
// 将fins传入ZipInputStream中
ZipInputStream zins = new ZipInputStream(fins);
ZipEntry ze = null;
byte ch[] = new byte[8192];
while ((ze = zins.getNextEntry()) != null) {
File zfile = new File(sDestPath + ze.getName());
File fpath = new File(zfile.getParentFile().getPath());
if (ze.isDirectory()) {
if (!zfile.exists())
zfile.mkdirs();
zins.closeEntry();
} else {
if (!fpath.exists())
fpath.mkdirs();
FileOutputStream fouts = new FileOutputStream(zfile);
int i;
while ((i = zins.read(ch)) != -1)
fouts.write(ch, 0, i);
zins.closeEntry();
fouts.close();
}
}
fins.close();
zins.close();
} catch (Exception e){
e.printStackTrace();
}
}
[3] 手机银幕适配
来源: 互联网 发布时间: 2014-02-18
手机屏幕适配
地址:http://www.537520.com/?p=762
最新技术文章: