Sorry for this off-topic question but I know there is a lot of knowledge here (and, of course, I did'nt get anything on Google).
I have a local html file on my SD card (say page1.html) which is calling another one (page2.html) via a simple link (Page2)
Both files are in the same directory (/sdcard/genealogie)
The fist one is correctly displayed but when I click on page2 link, the browser (Chrome) says 'ERR_FILE_NOT_FOUND'
Depending on which applcation I start the first one, paths are différent:
With local folders app, I get for page1.html:
The first one: "content://0@media/external/file/3393"
and the second (shown in the address bar) "content://0@media/external/file/Page2.html" but not found.
And if I type "content://0@media/external/file/Page1.html" it say file not found (same error then with Page2)
Hope I clear enough.
I Know this is because of recent security changes on Android 10 (was perfectly working for years before) but I wonder how I can make it work?
How are you opening the first html file, with activity Starter?
There is a block (.GetUri) in Taifun's File Extension that converts a normal file path to a content uri. Have you tried that? (put in first html file as the link)
Thank you TIM for your answer despite it's "off topic".
The thing is: I don't use AI2 at all; All .html files are on my SD card in one directory and I use Chrome to open the index file there (same with built-in viewer).
The file opens nice and clean but all the links (to other local files) results in "file not found".
Links are in the form: <a href="file2.html">237</a> with no preceding path.
I can see the first file has the form 'content://0@media/external/file/3393'
And when I click, it becomes: 'content://0@media/external/file/237.html'.
Any ideas ?
I just go with my brower ('My files') where the index is and click on the index.html file.
I can see the first file has the form 'content://0@media/external/file/3393'
And when I click, it becomes: 'content://0@media/external/file/237.html'.
Any ideas ?
I tried it on internal storage and I got:
"The permission READ_EXTERNAL_STORAGE had been denied; Please enable this in the settings of the app." (event it's on the phone's memory)
Therefore I used: