• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

need help with tasker

i need help with this. i can browse website to download an apk i have and i then need it to install it in the same task.what i am having trouble with is the part where the file is downloading to the installing.
i need to make the install task wait until the download task is complete.
how do i do this?

task
download file task

(i need the install task to wait untill the download task has completed)

install file task
 
Welcome to Android Forums

Browse URL pointing at external file like ...
http://somewhere.com/download/public/sample.apk
respond to prompts

Open file on your device like ...
downloads/sample.apk
respond to prompts

... Thom
 
You need to try out the Brose and Open actions. Both of them will provide dialogs that must be responded to. You can do that manually or automatically.

To do it automatically requires a Tasker action that requires you to be root-ed.

Since you can turn a Tasker task into an .apk and distribute it there is a danger that it will be made malicious. All of the normal safeguards for downloading and app installation have to be adhered to.

... Thom
 
You need to try out the Brose and Open actions. Both of them will provide dialogs that must be responded to. You can do that manually or automatically.

To do it automatically requires a Tasker action that requires you to be root-ed.

Since you can turn a Tasker task into an .apk and distribute it there is a danger that it will be made malicious. All of the normal safeguards for downloading and app installation have to be adhered to.

... Thom
I know how to browse the file and open but I want the open action to happen automatically after the download has finished.
I have created a task that will browse and created one that opens.
I have then tried creating a separate task and added both the tasks. but still the download will start and then the open task will trigger before the download completes
 
I don't know a condition that can be tested that marks the completion of a download through a Browse.

If un-root-ed the only thing I can suggest is one task of the form ..

Browse
(manual responses)
Wait (2 min?)
Open
(manual responses)

... Thom
 
This task using a slow wifi link and Boat downloads and invokes a 2MB pdf file. There is one manual interaction to hit the Download button on the Boat screen (after it is run once).

a
A1: Variable Set [ Name:%file To:card.pdf Do Maths:Off Append:Off ]
A2: Delete File [ File:download/%file Shred Level:0 Use Root:Off Continue Task After Error:On ]
A3: Browse URL [ URL:http://xxxxxx.com/download/%file ]
A4: Wait [ MS:0 Seconds:16 Minutes:0 Hours:0 Days:0 ]
A5: Open File [ File:download/%file Mime Type: ]

... Thom
 
Back
Top Bottom