在Android中将视频从一个位置复制到另一个位置

问题描述:

我遇到了一个问题,我想从android的sdcard中将位置从一个位置复制/移动到另一个位置。 有人知道如何做到这一点。?在Android中将视频从一个位置复制到另一个位置

+0

请参阅http://exampledepot.com/egs/java.io/CopyFile.html – MAC 2012-07-07 08:57:48

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; 
}