解决方案 »

  1.   


    // 启动APK安装
    Intent intent = new Intent(Intent.ACTION_VIEW);
    String strPath = imFile.getAbsolutePath(); //getApplicationContext().getFileStreamPath(strName).getAbsolutePath();
    Log.i(TAG, strPath);
    intent.setDataAndType(Uri.parse("file://"+ strPath), "application/vnd.android.package-archive");
    startActivity(intent);
      

  2.   

    可以这样
    String strPath = getApplicationContext().getFileStreamPath(strName).getAbsolutePath();
    自己指定一下目录