如何从android活动中打开zip文件?

如何从android活动中打开zip文件?,android,android-intent,Android,Android Intent,我正试图从我的应用程序中打开一个zip文件,但它不起作用 Uri=Uri.parse(“file:///mtn/sdcard/download/teste.zip"); Intent it=新的Intent(Intent.ACTION\u视图,uri); 星触觉(it) 我已经尝试过其他选项,如: File file = new File("mnt/sdcard/download/teste.zip"); Intent it = new Intent();

我正试图从我的应用程序中打开一个zip文件,但它不起作用

Uri=Uri.parse(“file:///mtn/sdcard/download/teste.zip");
Intent it=新的Intent(Intent.ACTION\u视图,uri);
星触觉(it)

我已经尝试过其他选项,如:

File file = new File("mnt/sdcard/download/teste.zip");
            Intent it = new Intent();
            it.setAction(android.content.Intent.ACTION_VIEW);
            it.setDataAndType(Uri.fromFile(file), "application/zip");
                startActivity(it);
但它也不起作用

[已编辑]

如果我已经在手机中安装了winzip应用程序,我的应用程序会调用winzip应用程序并打开存档,但我实际需要的是在我的本机应用程序中打开它,如果您想从zip文件读取,请使用。AndroidAPI对ZIP格式有很好的支持

ZipFile z = new ZipFile("/mtn/sdcard/download/teste.zip");
“它不起作用”是对你的症状的无用描述。