在Android系统中新生成文件后会出现这种情况,在手机或者模拟器中能看到,但是在电脑上看不到,可以调用下面的代码尝试一下
MediaScannerConnection.scanFile(this, new String[] { file.getAbsolutePath() }, null, null);
参考自berlin2017
在Android系统中新生成文件后会出现这种情况,在手机或者模拟器中能看到,但是在电脑上看不到,可以调用下面的代码尝试一下
MediaScannerConnection.scanFile(this, new String[] { file.getAbsolutePath() }, null, null);
参考自berlin2017
本文标题:Android新建文件连接电脑无法显示出来
本文链接:https://www.haomeiwen.com/subject/udqeaftx.html
网友评论