How do I read external html file using taifun files?

i am trying to read a html file inside the file images but when i try to make to work do nothing.

image
jsreader.aia (34.3 KB)

i dont know why if the files is inside the images file.

You need to use a full url e.g.
file:///storage/emulated/0/Download/images/myfile.html

The Filelist method returbs a list of files
You can't assign a list to the HomeUrl... try the first item from the list

Use the companion app and Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

but taifun say that i cant assign to home url the filelist. i am little confuse...


Show us the Do it result
Taifun

i get this but the webviewer dont show me the html inside the webviewer

  1. You cannot set the WebViewer.HomeUrl to a list.
  2. You cannot access a non-media file on Android 11+.

You need SAF for it. But you cannot access /Download and the root dir of the external stoarge with SAF.

There you go
As you can see, you get a list, which has one item
So what about using the select list item block to get the first item from that list?

Taifun

but using the webviewer cant read a external file and show in the screen like html viewer?

Did you read my post ?
Did you read @Anke's post ?

my version android is 9 not 11 or + . so it would be work no?

yes i read both post but i will try that but i am little confuse about the route that you show me. where i need to put this route? . inside a file list? or where exactly? i am making the modify using select item. like this its correct?

You need READ permission on Android < 11.

yes i ask the permission in the initialize screen like you can see in my blocks code

image

As I said:

now its working with my last code thanks a lot

i change to true the subdirectories included

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.