Listpicker filter bar

I think he is aware of this:

So why do think the snippet works on Android 11 but not on Android 10? (Probably not on Android 9 either, Richard has a v9 device to test on too).

The snippet is not using allfilespermission.aix, only the latest version 14a of TaifunFile.aix.

Something interesting - my phone is running Android 11 and nagging me to update to Android 12, but GetApiLevel_3.aix returns API 29, Android Version 10. :thinking:

Edit: This because Huawei have hoax Android versions built on top of the Android 10 open source. They are still banned from Google upgrades by the USA government.

Listing MP3s from the removable (micro) DS card:

And after listing MP3s from /Documents/PlayMusic/

This works without MANAGE_EXTERNAL_STORAGE permission on all Android version < 11, but on Android 11+ only wth MANAGE_EXTERNAL_STORAGE permission (or the app must use SAF).

Where do the HTML files come from? Who created these?

I like the Gipsy Kings :sunglasses:

So effectively you have both mp3 and html files in /Documents/PlayMusic and it does work, as per my setup.

Listing files from microSD is not really useful as some 'newer' Tablets do not have a card slot.

If you open the sample, they were created by Richard on a PC with Serif WebPlus8 - so essentially HTML4, fixed dimensions. I have modified Richard's sample so that it is responsive.

Well, my Android 11 phone (Huawei P30 Pro), which is actually my daughters, borrowed on a non-return basis, is actually Android 10 (Hoax Android 11)! - so that explains why the snippet is working. It should also mean it would work on Richard's Android 10 devices......

1 Like

Ok, but what user would go to the trouble of creating HTML files like this for all MP3s (and I have thousands of them)? I definitely don't. So this is far from a viable solution (approach).

Well, if there isn't one, none will be listed. So where should the problem be?

Firstly, it can be done by basically filling in a form, and that form is then used to generate an HTML automatically (Desktop program). I assume that cue data is readily available for popular recordings so it could be a conversion or copy and paste exercise.

https://dtccuesheets.tripod.com/id1.html

What kind of User? An Amateur DJ Enthusiast - there are thousands of them in the UK and I'm sure many more than that in the USA.

Edit: Dance Moves.

Edit: Probably hundreds of files rather than thousands if it's about dance moves? I think Richard can explain better.

That's what we are trying to find out :grin:

I think it's time to end this. I just tried it, Music Titles5, works on a different Android 10 tablet, cheap Chinese one. and it works. It doesn't work on a Samsung Tab A, with Android 10.

Anke,
This is for a very small group of people with a much smaller collection of music than you have and many of the html files have already been created. It will never be offered on Google play.

Chris,
Thank you, the html file is one of the few I did when I was playing around with how to easily create them. Most of the others I have are html 4. I honestly didn't have any idea that devices were being produced that don't have external storage. I don't like to take up space on internal memory with a lot of things that take up space. Anything that relies on cloud would be pretty useless in my world, Again thank you

I had no intention of this going like this with my original question. It has turned into much more than I, with my limited experience, could implement into my own project.

This app should work on all Android versions.

  • It lists all MP3s from external storage (regardless of where they are).
  • It lists also all MP3s from a microSD card (if available).
  • You can sort und unsort MP3s.
  • You can search for keywords. The MP3s found are then listed and can be selected and played.

If the corresponding HTML files are available in the respective folders, they are displayed using a WebViewer. The HTML file names must have the same names as the MP3 files except for the extension. There is no need to remove any spaces or replace them with %20.

https://drive.google.com/file/d/1VOzDX2cDpctjtawsXSvUFKk2qbJ3OGOh/view?usp=sharing

On devices with Android 11+ MANAGE_EXTERNAL_STORAGE must be granted. The app automatically requests this permission on Android 11+.

The files are small, they really don't take much memory at all - the average Tablet has 32GB of storage available.

I'm glad to hear you have seen 5 working :sunglasses: I should have asked you about your specific hardware because you are not the only one to have an issue with a Samsung TabA.

If the HTML files are a problem to produce, we could either make a Desktop program, or maybe you could use text files displayed in a Label Component.

I would like to know if my app (APK) will work on your test devices as well, because it should.

I tested it on 4 of my test devices (Android 9 {Samsung Galaxy Note8, Xiaomi Redmi Note5}, 11, 12). Both Android 9 devices have a microSDcard.
Works fine on all.

Yes it works on two Android 10 tablets, an Android 9 tablet, an Android 10 phone and an Android 7.7.2 phone. That's all I have to test on.
The Galaxy TabA tablet seems to give the most problems. The other tablet is a cheap Chinese thing I bought to test things on.
All have internal sd card. I loaded things into both internal and external storage and it found everything including all mp3 files the phone came with, ringtones, whistles and other annoying sounds.

Ok fine, do you have a device where it's not working?
If so, which and which Android version.

I have 20 test devices running Android 2.x, 4.x, 5.x, 7, 8.x, 9, 10, 11, 12.
So I can check it.

As I said, it should work on all Android versions / devices.

Thank you. It works on everything I have.

1 Like

My app lists all MP3s from the device.
If only special folders should be listed, this is no problem at all.

The app is for demonstration purposes only to show what is possible.

Understood, ideally it would only look in one, maybe two specific folders on external storage. For neatness one folder for music and another for the html files. If not, everything could go in one folder.