Newbie question - start app and wait for exit

Post your questions and help other users.

Moderator: Martin

Post Reply
Lutz
Posts: 4
Joined: 11 Feb 2013 20:32

Newbie question - start app and wait for exit

Post by Lutz » 11 Feb 2013 20:53

Hello,

I want to use a shortcut to make the following:

1) after hitting the shortcut the app "GBAHours" ( for control the driving time and mileage ) will be started
2) I type my time and the mileage in GBAHours and only if I close the app the next step 3) will be started. If I don't close the app goto 2)
3) a second app "Blitzer" is starting. There is no need to type in anything. It works in the background.
4) My Tomtom-app is starting and is in the foreground to type in my destination.

How can I wait for ending of the app GBAHours? Now I use a condition "app task is running". If the answer is "yes" there should be an endless loop for the condition test. Only if the answer is "no" start the second and third app.

Please can you help me how I can do this?

Thank you.

Lutz

BTW: I cannot use your own Gleeo Time tracking because I'm a technician with a lot of customers ( about 50 ) and different kinds of job ( installing, repair, qualification, driving to customer, driving from customer ). Gleeo cannot handle this, isnt it?
GBAHours is good for doing this but cannot save the entries in my google calender. If I could do this with Gleeo/Automagic this would be great.

BTW2: Sorry for my bad english. ;)

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Newbie question - start app and wait for exit

Post by Martin » 12 Feb 2013 07:04

Hello Lutz,

You can use a condition "App task running" and create a loop (see the Countdown example in the catalog for a loop). Include an action Sleep: ~5s in the loop to slow down the loop a bit.
Another option is to use a second flow with a trigger "App Task ended: ...GBAHours" and add the actions for Blitzer and Tomtom in this flow. Enable the second flow using an action "Set Flow State" from the first flow and disable the flow again when the second flow finishes.

Gleeo has no customer fields, only project and task. You could enter the customer name in the project or the task field or use a naming convention like "customer/task" in the task field and later split the combined field in an external tool like excel to create detailed reports.

Regards,
Martin

Lutz
Posts: 4
Joined: 11 Feb 2013 20:32

Re: Newbie question - start app and wait for exit

Post by Lutz » 14 Feb 2013 06:28

Hello Martin, thanks for your help. Now it works very well.
http://automagic4android.com/flow.php?i ... 0cbbb02610

Post Reply