Get current launcher?

847 views
Skip to first unread message

Riku

unread,
Sep 6, 2017, 5:08:56 PM9/6/17
to automa...@googlegroups.com
Hi, 

With the resolve activity block, action=main and category=home I managed to:
- get the first launcher in the list unless it is the system default that is returned by the proceed immediately option which is not my current launcher unfortunately.
- or display a dialog that only show the installed launchers

But I'd like no user intervention and directly get the current used home launcher by the system. Would it be possible?

Henrik "The Developer" Lindqvist

unread,
Sep 7, 2017, 5:52:13 AM9/7/17
to Automate
Try using Proceed: Immediately, Action: Main and Category=
[ "android.intent.category.HOME", "android.intent.category.DEFAULT" ]

See: https://stackoverflow.com/a/25056270/445360

Riku

unread,
Sep 7, 2017, 6:51:32 AM9/7/17
to Automate
Nope, it returns the same results as "android.intent.category.HOME" alone, the system default launcher, NOT the one selected in settings and currently in use. It's not a blocking issue in my flow. I ask user to select the launcher he uses until an automated solution.

Henrik "The Developer" Lindqvist

unread,
Sep 7, 2017, 9:20:35 AM9/7/17
to Automate
Then i don't think it's currently possible. I'll have to investigate how it's done, and if it can implemented.

Pete

unread,
Jun 25, 2018, 4:19:39 AM6/25/18
to Automate
Has there been any progress on this? I have a couple flows that would benefit from being able to determine the default launcher but the resolve activity block still can't correctly determine the default launcher if more than one launcher app is installed. The app start block however is able to consistently launch the correct launcher even if multiple are installed using action "main" and category  ["android.intent.category.HOME", "android.intent.category.DEFAULT"].

Below is a link from stack overflow regarding this and it seems it should be possible.

Henrik "The Developer" Lindqvist

unread,
Jun 25, 2018, 3:17:14 PM6/25/18
to Automate
"Resolve activity: filter on preferred" still on the to-do list.

Pete

unread,
Jun 25, 2018, 5:36:11 PM6/25/18
to automa...@googlegroups.com
Works great with the new "preferred activity" block with action "main" and category "home" .... Thanks for creating this block!
Reply all
Reply to author
Forward
0 new messages