摘要: /** * 安装APK文件 */ private void installApk() { File apkfile = new File(mSavePath,Constant.appFileName); if (!apkfile.exists()) { return; } // 通过Intent安装 阅读全文
posted @ 2016-04-19 12:36 狂奔的小狮子 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 这一类的错误,原因一般有两点: 1.没有给相应读写文件权限 2.给了权限,但是文件的路径写的不对,比如少了“/”,这样就会报错了。 Caused by: android.system.ErrnoException: open failed: EISDIR (Is a directory) 这个异常是 阅读全文
posted @ 2016-04-19 11:41 狂奔的小狮子 阅读(14646) 评论(1) 推荐(1) 编辑