Page 1 of 1

Shortcut to the application

Posted: 20 Sep 2013 08:09
by Ra9om1ak
Is it possible to make a shortcut to the application in the specified location on the screen, such as a dock?

Example: after reboot, create a shortcut to an application in the dock, the first on the left.

Thx.

Re: Shortcut to the application

Posted: 20 Sep 2013 08:48
by Martin
I would recommend to start an app using an action Launch App or Launch Shortcut when you already know the app to start when you create the flow.

If you really want to start an app at a specified location on screen you have to simulate touch input:
On a rooted device you can try Execute Root Comand: input tap <x> <y> to simulate touch screen input. The command is not available on all ROMs (probably only on Android 4+).
Without root you can use action Control UI: click(x, y). This action requires that the Automagic accessibility service is enabled. This can cause the launcher to start talking on some Samsung devices so it might not be a viable solution on such a device.

Regards,
Martin

Re: Shortcut to the application

Posted: 20 Sep 2013 08:54
by Ra9om1ak
The problem is that I do not want to run any application, just create a shortcut in the dock after reboot, or sth.

P.S. There is a problem with last EAP version ? "Accessibility service would be used by some triggers but is currently not avalaible" after start.

Re: Shortcut to the application

Posted: 20 Sep 2013 09:04
by Martin
Then I probably don't understand what you want to achieve.
Do you want to automatically create a new shortcut at a specific location on the home screen or do you want to execute something in Automagic when the device starts?

Is the accessibility service enabled in the preferences of Android?
It seems that the service is not running but at least some triggers would need the service to work.

Re: Shortcut to the application

Posted: 20 Sep 2013 09:10
by Ra9om1ak
"automatically create a new shortcut at a specific location on the home screen" - in the dock, if possible
accessibility service is enabled, that's why I asked.

Re: Shortcut to the application

Posted: 20 Sep 2013 09:40
by Martin
Automatically creating a shortcut at a specified location is not possible. Android has no official API for this to my knowledge.

Please turn the accessibility service off and on again in the preferences of Android. Is the notification is still displayed after doing this?

Re: Shortcut to the application

Posted: 20 Sep 2013 09:44
by Ra9om1ak
After turn on/off, the first few times it's ok, then again wrong. Sometimes there is no message after start.