在Android中将视频从一个位置复制到另一个位置
答
private String CopyFile(String srcPath,String destPath)
{
String videoFileName = VIDEO_FILE_PREFIX + mCurrentQuestion.getQuestionId() + VIDEO_FILE_SUFFIX ;
File source= new File(srcPath);
File destination= new File(destPath+"/"+videoFileName);
source.renameTo(destination);
return destPath+"/"+videoFileName;
}
请参阅http://exampledepot.com/egs/java.io/CopyFile.html – MAC 2012-07-07 08:57:48