My app shows images in Documents, see attached blocks
What doesn't work on Pixel 4 ?
Also, you don't need an extension to sort your list, you can use the built-in list sort block for that.
I can not see the file list, I'm sure the images are in Documents
Try changing Legacy to Shared
No output with shared
Strange, on my emulator (Pixel 8 Android 13), using Shared returns a file listing, Legacy returns empty list.
(tested compiled as well)
As workaround use one of the file extensions, for example App Inventor Extensions: File | Pura Vida Apps
Taifun
I have now the list, but I can not show the image
As always
What about providing a screenshot of your relevant blocks
Taifun
Are you saying, this works for you now?
What did you change?
How does the html file look like?
EDIT: you might have to ask additionally for Read Media Images Permission
Taifun
I added permission request, but "file not found" error
html file
<!DOCTYPE html>
<html style="background-color: black;">
<head>
<title>ImageView</title>
<meta name="viewport" content="width=device-width, initial-scale=1 minimum-scale=1">
</head>
<body>
<img id = "myimg" style="width: 100%; height: 90vh; object-fit: contain; object-position: 50% 50%" src=""/>
<script>
var img = window.AppInventor.getWebViewString();
document.getElementById("myimg").src = img;
</script>
<body>
</html>
I would ask for permission during screen Initialize, so it works also next time when you open the app again
Your new path to the html file is incorrect... previously it was correct
You forgot to answer this question
Does it work if you modify the html file to use a static image?
If you get an error message next time, provide a screenshot of the error message
Taifun
Confirm imgurl.html is in the Documents folder?
Confirm that the listview selection is returning just the image filename (e.g. myimg.png and nothing else)
Show what you see
It works OK for me with static image from assets (Pixel 8 Android 13)
n.b. nice alternative method for image display

Does it work if you modify the html file to use a static image?
I'm sorry, but I don't understand, can you test my aia and modify it ?
CARDShtml.aia (13.4 KB)
Your aia project works fine on Android 13 and 15 here (with companion)
If you have no images in Documents (why not put your images in Pictures
?), then
will copy your Cards.png on first run.

Your aia project works fine on Android 13 and 15 here (with companion)
It works fine with companion (images are in Documents), but It doesn't work when installed on android 14. I put images in Documents becouse I have to many in pictures.
Will test compiled...
You have moved to Android 14 ?
yes
Needed three restarts, and a delete of an existing html file created by Companion App in Documents to get it running. Then it works just fine.
- reorganise your start up to handle permissions and run stuff after these have been granted.
- Ensure you have no leftover files from using companion app (non-media files need to be owned/created by the app)