Page 1 of 2

Pick file in start activity

Posted: 06 Jul 2019 09:51
by Rafi4
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

Re: Pick file in start activity

Posted: 06 Jul 2019 11:22
by anuraag
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.

Re: Pick file in start activity

Posted: 06 Jul 2019 11:28
by Rafi4
hi anuraag
simply create a test flow and post. I can easily learn.

thanks from record4

Re: Pick file in start activity

Posted: 06 Jul 2019 11:34
by anuraag
#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.

Re: Pick file in start activity

Posted: 06 Jul 2019 12:19
by Rafi4
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

Re: Pick file in start activity

Posted: 06 Jul 2019 14:31
by anuraag
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.

Re: Pick file in start activity

Posted: 06 Jul 2019 15:17
by anuraag

Re: Pick file in start activity

Posted: 06 Jul 2019 15:17
by Rafi4
hi anuraag
i have added the screen shot using debug dialog.

from record4

Re: Pick file in start activity

Posted: 06 Jul 2019 15:37
by anuraag
Try updated flow

Re: Pick file in start activity

Posted: 06 Jul 2019 15:43
by Rafi4
hi anuraag
i am already using updated flow
from record4