I am retrieving a file from my android test project by using the assets folder. The file can be loaded as an InputStream, but i need the url location of the file, is there a way to retriev the url without saving the file again and use the new file url, because the file is already there.
This is my current code to load the inputstream
Context testContext = getInstrumentation().getContext();
InputStream input = testContext.getAssets().open("attachment.png");
Is there a way the retrieve an url of this file instead of the inputstream?