I want to use a HTML file in USD drive which is connected to android phone using a USB connector. There is an image in the webpage with the following code (the image is in same folder with HTML file):
<img src="test.jpg">
I have also tested ./test.jpg
and /test.jpg
as the relative path to display the image in the webpage but no success. What is the correct relative path for calling images and videos in a HTML file in USB flash drive?
Foot note:
When I open the HTML file in the android chrome browser the path in the address bar is:
content://com.sec.android.app.myfiles/.FileProvider/extrenal/DE1F-B20B/index.html
which seems to be a different in different devices. Is there a way to set the addresses relative to this format?