[英]Move or copy .3gp files from one directory “External Dir” to another External directory in Android
I am checking some recorded audios and marking them.我正在检查一些录制的音频并标记它们。 what I am trying to do is after when I mark audios and press submit button I want to move those audios ".3gp files" to another directory so that those audios do not appear next time when I open Recyclerview.我想要做的是在我标记音频并按下提交按钮之后,我想将这些音频“.3gp 文件”移动到另一个目录,以便下次打开 Recyclerview 时这些音频不会出现。
After some research my colleague has found Apache IO library for file input/output stream.经过一番研究,我的同事发现了 Apache IO 文件输入/输出库 stream。 "https://github.com/apache/commons-io" this library helps in handling input/output file streams. “https://github.com/apache/commons-io”这个库有助于处理输入/输出文件流。 other than that we can also use FileUtils.copy(fileInputStream,FileOutputStream) but it required minimum API 29.除此之外,我们还可以使用 FileUtils.copy(fileInputStream,FileOutputStream) 但它至少需要 API 29。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.