Input dialogue

Post your questions and help other users.

Moderator: Martin

Post Reply
Akt
Posts: 133
Joined: 25 May 2014 08:57

Input dialogue

Post by Akt » 10 Jul 2017 01:11

Hi,
I have made an flow to show all the audio files in input dialogue action using int variable file list.

But it shows the full path along with the audio name.

Is it possible to only show the audio file name and not full path.

User avatar
yogi108
Posts: 100
Joined: 09 Nov 2016 08:00
Contact:

Re: Input dialogue

Post by yogi108 » 11 Jul 2017 16:09

Hi,

there are always more ways to get a solution, here one in short:
after your action you have the variable files filled with path + names.
next step is creating an action script with the following, then you should get the filenames only in variable a for showing. I'm no Java expert, use at your own risk...


a = newList();

for (i in files)
{
b=lastIndexOf(i, '/')+1;
c=substring(i, b);
addElement(a, c);
}
"You cannot know the meaning of your life until you are connected to the power that created you.”
Shri Mataji Nirmala Devi, founder of Sahaja Yoga

Akt
Posts: 133
Joined: 25 May 2014 08:57

Re: Input dialogue

Post by Akt » 13 Jul 2017 11:14

Hello friend,
I tried to write the script but i was unsuccessful as I don't know anything about script.
Can you help me in making the flow?
http://automagic4android.com/flow.php?i ... fdbd4465b7

jurkov
Posts: 8
Joined: 07 Jul 2016 20:06

Re: Input dialogue

Post by jurkov » 14 Jul 2017 14:10

Change storage place :)
Attachments
flow_Flow2_20170714_160916.xml
(2.29 KiB) Downloaded 747 times

Akt
Posts: 133
Joined: 25 May 2014 08:57

Re: Input dialogue

Post by Akt » 15 Jul 2017 08:24

Thanks friend very much .

Post Reply