Commit 87b2e9c6 authored by 李增强's avatar 李增强

m

parent 7bd62e93
...@@ -118,8 +118,9 @@ public class Handler { ...@@ -118,8 +118,9 @@ public class Handler {
} }
public void installApk(String path){ public void installApk(String path) {
Intent var5 = new Intent("android.intent.action.VIEW"); Intent var5 = new Intent("android.intent.action.VIEW");
path = path.startsWith("file://") ? path : "file://" + path;
var5.setDataAndType(Uri.parse(path), "apk"); var5.setDataAndType(Uri.parse(path), "apk");
try { try {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment