简体   繁体   English

将.3gp 文件从一个目录“External Dir”移动或复制到 Android 中的另一个外部目录

[英]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.

相关问题 如何将内部目录音频文件复制到Android 11中的外部目录 - How to copy internal directory audio files to external directory in Android 11 如何将文件从一个目录复制到另一目录? - How to copy my files from one directory to another directory? 无法将文件从外部存储复制到Android 9中的数据目录 - Unable to copy file from external storage to data directory in Android 9 Android:将文件从一个目录复制到另一个目录 - Android: copying files from one directory to another 无法创建外部文件目录-ANDROID - Unable to create external files directory - ANDROID 如何在Android中将文件存储到指定的外部目录 - How to store files to a Specified External Directory in Android 使外部目录android - make external directory android 哪个Android应用程序目录更适合将数据保存在外部文件目录或外部缓存目录中 - Which android application directory is better to save data in,External Files directory or External cache directory 从外部存储播放 3gp 文件时在 AndroidMedia Player 中出现错误 (1,-2147483648),该文件首先使用 MediaRecorder 录制 - Getting Error (1,-2147483648) in AndroidMedia Player while playing 3gp file from external storage which is first recorded using MediaRecorder 如何在Android上编写音频文件,最好是.3gp - How to write audio files on Android, preferably .3gp
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM