public static void copyAssets(Context context,String assetsFilename,File file,String mode) throws IOException, InterruptedException {
  AssetManager manager=context.getAssets();
  final InputStream is=manager.open(assetsFilename);
  copyFile(file,is,mode);
}

public static void copyAssets ( Context context , String assetsFilename , File file , String mode ) throws IOException , InterruptedException { AssetManager manager = context . getAssets ( ) ; final InputStream is = manager . open ( assetsFilename ) ; copyFile ( file , is , mode ) ; }
copy file in assets into destination file
