Pick file in start activity

Post your questions and help other users.

Moderator: Martin

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Pick file in start activity

Post by Rafi4 » 06 Jul 2019 09:51

Hi
how can I use pick file and open image in start activity I am in a bit confusion about how to use them. I am using but not succeeded.
thanks from record4

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

Re: Pick file in start activity

Post by anuraag » 06 Jul 2019 11:22

Pick file give data_string variable. You need to use query content provider action multiple times to get actual path of that file for further actions. I have shared an action which can do that.
http://automagic4android.com/forum/view ... =10#p24596

Place this action after pick file action. Check file_path variable.

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Re: Pick file in start activity

Post by Rafi4 » 06 Jul 2019 11:28

hi anuraag
simply create a test flow and post. I can easily learn.

thanks from record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

Re: Pick file in start activity

Post by anuraag » 06 Jul 2019 11:34

#deleted#

This flow isn't limited to opening image only. You can use any file format. If an app is installed to open that file then you will get list of apps to open with. I use similar flow with send/share intent received.
Last edited by anuraag on 06 Jul 2019 15:37, edited 1 time in total.

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Re: Pick file in start activity

Post by Rafi4 » 06 Jul 2019 12:19

hi anuraag
Thanks a lot. working fine. but in some image files not displaying and mp3 files not playing in sd card. anyway thanks a lot.

thanks from record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

Re: Pick file in start activity

Post by anuraag » 06 Jul 2019 14:31

There is a silly bug when creating cache dir which may causing this.

Can you remove 3rd action and add debug dialog, change connection type to exception between last action and debug dialig? Give me auth variable output.

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

Re: Pick file in start activity

Post by anuraag » 06 Jul 2019 15:17


User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Re: Pick file in start activity

Post by Rafi4 » 06 Jul 2019 15:17

hi anuraag
i have added the screen shot using debug dialog.

from record4
Attachments
06.07.201920-07-58.jpg
screen shot
06.07.201920-07-58.jpg (159.22 KiB) Viewed 16739 times
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

anuraag
Posts: 371
Joined: 24 Jan 2015 02:06

Re: Pick file in start activity

Post by anuraag » 06 Jul 2019 15:37

Try updated flow

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Re: Pick file in start activity

Post by Rafi4 » 06 Jul 2019 15:43

hi anuraag
i am already using updated flow
from record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

Post Reply