Listpicker filter bar

It's not finding any mp3 files running apk or companion.

Could this be done on a PC? That's way too much complicated typing to be done on anything without a keyboard. I did a bit of research but, didn't find much info. I'm probably just not looking in the right places.

That's odd, works very well here. Do you get a Notification message?

It can be done on a PC, a bespoke program to produce HTML files from an input form. App Inventor can't make programs for a PC though, you will need to use a text-based language.

Only MP3s in the root directory of the Shared folder /Music will be found. If there are none, a corresponding notification is displayed. MP3s in subdirectories of /Music are not listed.

We already achieved this with mp3 files alone, Snippet 4 collects mp3 and HTML files.

... which is obviously not the case with him.

Are you saying there is supposed to be some folder named music in some other location than these? This is Android 10. I have the same setup on another Android 10 tablet and an Android 7.1 phone. Same results on all three. It does give the files not found notice.

Hi Richard, for now, mp3 and Html files directly in the standard Android Music folder (no sub-folders searched). We did this (mp3 only) in the earlier test, which was successful your end.

Also in this test (4), try my Fiddlesteppers Polka 2.html

Tried that, no change. No version has ever found files on the external card. I just tested all again to make sure I was remembering correctly. There is a folder named Music on both internal and external card. The have different named files so that I can tell which is being listed.

  • Music titles 2 found mp3 files on internal using companion

  • Music titles 2 doesn't work APK

  • Music titles 3 found mp3 files on internal using companion and
    switch

  • Music titles 3 found mp3 files on internal using APK and switch

  • Music titles 4 gets Music Folder No music files found message using companion or APK using the appropriate switch.

  • Music titles 4 using get global APK = false in companion,
    finds music files on internal.

Can both of these be true? :thinking:

Remember, the file names must be identical for mp3 and HTML. You do have 2 titles that fit that requirement:

titles

I have tried it a number of times just to make sure I would get the same results. The screenshot, by the way, was done before I put your Fiddlsetppers Polka 2. html in the folders. I have doubly checked that all files are named exactly the same.

The only way I get any files listed in Music Titles 4 is to have get global APK = false set when using companion.

What am I missing? The AI blocks ask for permission to "ReadExternalStorage" but, all of the files that are found, on all versions, have been from internal storage.

To use the html files on Android10 and above don't we need to use this with activity starter android.settings.MANAGE_ALL_FILES_ACCESS_PERMISSION

Since these are non-media files they can only be accessed (read) on Android 11+ if they are in one of the Shared folders /Documents or /Download or the ASD (but not in /Music).

Otherwise the app needs MANAGE_EXTRNAL_STORAGE permission or must use SAF.

See also here:

I understand that from your instruction on other posts. I was asking about this post in order to clarify what I thought I knew on the subject.

My statements apply to every post.

I was asking about why the code shown on this post didn't include that because non media files are being asked for. I can't learn if examples don't seem to show what I thought to be true.

.... It is working on Android 11 Anke. However, Richard is testing on Android 9 and 10.

That is correct Richard. When you pick a music title, does that play?

On Android 11 (html saved in the ASD):