what is the dataWithContentsOfURL equivalent in android? : Hi i am trying to get the video data from a url. my project is base in a swift project. there they use dataWithContentsOfURL someone know what is the equivalent for android

 

>    data = [NSData dataWithContentsOfURL:videoUrl options:0 error:&error];
     data = [NSData dataWithContentsOfURL:videoUrl options:0 error:&error];