So I'm trying to download a huge file. So naturally my first step is to open the stream
RNFetchBlob.RCTContext.getContentResolver().openInputStream(Uri.parse(fromUri));
My problem is that this instead of working quickly and just opening the stream, it in fact downloads the thing in the background. How do I know? Well this command blocks for like 5 minutes and then when I read from the stream, it's instantaneous.
Could I make this action prevent from download in the background? I want to inform the user about the progress and not just wait.
Edit: to make clear, I'm using a content:// URI for the resource