Possible to create shortcut that launches the Google Calendar "Add Event" screen.

278 views
Skip to first unread message

Jeremy Gollehon

unread,
Sep 28, 2016, 6:49:00 PM9/28/16
to Tasker
I'm trying to create a shortcut for my homescreen that launches the Add Event screen for Google Calendar.
I've looked through the apps intents and can't find a way to get to the screen.

Any push in the right direction would be really helpful.

Thanks!

Robert Ryan

unread,
Sep 28, 2016, 7:58:37 PM9/28/16
to tas...@googlegroups.com

You should be able use the Google Calendar API.

Jeremy Gollehon

unread,
Sep 28, 2016, 8:26:09 PM9/28/16
to tas...@googlegroups.com
Thanks for the reply Robert.
I'm not trying to add an event programmaticly, I'm literally just trying to bring up the New Event screen so I can type the information into it by hand.



On Wed, Sep 28, 2016 7:58 PM, Robert Ryan rbr...@gmail.com wrote:

You should be able use the Google Calendar API.

--
You received this message because you are subscribed to a topic in the Google Groups "Tasker" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tasker/sxFkwTcrnN8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tasker+un...@googlegroups.com.
Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.

Robert Ryan

unread,
Sep 28, 2016, 8:52:23 PM9/28/16
to tas...@googlegroups.com

Ok, how about this intent?

        test (9)
       
    A1: Send Intent
        Action:android.intent.action.EDIT
        Cat:Default
        Mime Type:vnd.android.cursor.item/event
        Target:Activity 

Jeremy Gollehon

unread,
Sep 28, 2016, 9:22:13 PM9/28/16
to Tasker
Excellent! Works perfectly... thanks!
Can I ask how you went about figuring out the correct intent instructions?

Robert Ryan

unread,
Sep 28, 2016, 9:49:06 PM9/28/16
to tas...@googlegroups.com

Actually it was the very first intent-filter in the manifest.

<intent-filter >
<action name="android.intent.action.EDIT" />
<action name="android.intent.action.INSERT" />
<action name="android.intent.action.VIEW" />
<category name="android.intent.category.DEFAULT" />
<data mimeType="vnd.android.cursor.item/event" />
</intent-filter>

Jeremy Gollehon

unread,
Sep 29, 2016, 9:14:40 AM9/29/16
to tas...@googlegroups.com

Cool. I just looked up and learned how to look through the manifest files in an apk. Thanks!

Last question. This works as expected when tapping the run button in tasker, but from a shortcut or widget on the home screen nothing happens. Does it work for you?


--

Jay M

unread,
Sep 29, 2016, 9:17:51 AM9/29/16
to tas...@googlegroups.com

Is Tasker enabled? The icon in the actionbar should be grey if its disabled if its grey long press it.


You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.

Visit this group at https://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.
--

Jay M ︻芫══一

Jeremy Gollehon

unread,
Sep 29, 2016, 9:20:33 AM9/29/16
to tas...@googlegroups.com

That was it! Thanks!
I forgot I had turned out of to test battery life. 😕

Reply all
Reply to author
Forward
0 new messages