How to add list of folder name in spinner

/storage/emulated/0/Download/my folder/here is 4 folder

Now using file tools extension I will get the list of 4 folder which are present in my folder path and name of folder is name 1,2,3,4

Now I want to add these folders name to spinner and these folders will show in drop down menu

Try this Many time but all 4 folder name add in selection index 1 not come like in row wise

Please help me

Thank you!!!

Can you explain better? With blocks or images.

:thumbsup:

My blocks is not working but I can explain

So I use filetools extension to get the list of folder which are present in this path /storage/emulated/0/Download/my folder

Inside the my folder there are 4 folder

So now in list I get the list of 4 folder

Now I want add these folders name in spinner

So if I click on spinner the drop down menu will show and folder name will show in drop down menu

Sorry for my bad English

Edit: or any other way to get list of folder

Have you managed to get the names of the 4 subfolders?

\folder\subfolder1
\folder\subfolder2
\folder\subfolder3
\folder\subfolder4

subfolder1, subfolder2, subfolder3,subfolder4

Use ‘Do it’ on the block on which you are getting these 4 folders and show that image here.

Yes in list of folder I didn’t getting this “,” that’s why I spinner adding the subfolder names in line

How can add this “,” in every subfolder name which I get from list of subfolder

Did You create a list ?

I not create list I use extension to make list

You check , If really was create a list ,?

Did you checked this?

List create like this
/storage/emulated/0/Download/my folder/subfolder1
/storage/emulated/0/Download/my folder/subfolder2
/storage/emulated/0/Download/my folder/subfolder3
/storage/emulated/0/Download/my folder/subfolder4

After list create want spinner show this subfolder1, subfolder2, subfolder3 , subfolder4

How I can convert this list into this format subfolder1, subfolder2, subfolder3 , subfolder4

Edit:

No i think this is different ???but I will try this

You need :