Saturday, 24 October 2015

[Xposed][Tasker][Evernote] Trying to "Google Now" a reminder to Evernote, stuck



As my first semi-serious project to learn AutoVoice, AutoInput, Tasker, Google Now, and so on, I decided to work on something I've been looking for but can't find: "Google Now" a reminder into Evernote's Reminder, rather than the GN reminder.

What I want to accomplish is "Google Now", "Remind Evernote This is a test reminder", then Evernote add a new reminder with the text (no title) "This is a test reminder" and no due date/time.

(I know you can do "note to self", but I want it to appear in Evernote Reminders, not just a regular text note. )

I got the trigger phrase to work ("remind evernote")

However, I got stuck trying to input the text as a reminder.

Approach 1)

Under "task" I can only get to App / Launch App, not a specific activity.

Approach 2)

I thought I can launch app, then use AutoInput to click the PLUS button, then reminder, but repeated attempts at using the easy-config kept taking me to the note behind the Add note button, not the button itself. I can't find the darn UI object to trigger.

Approach 3)

I thought about using an INTENT, however, looking at Evernote API, both at the Evernote Blog entry on Android Intents and the Github repo shows NO INTENT to add a reminder. Apparently a reminder is a regular note with three extra fields.

So right now, I'm a little stuck.

Question 1) How the BLEEP do I pop up the quick reminder dialog box like the widget

Question 2) If that's futile, how do I engage the Intent and add the reminder directly via the API?

Question 3) (Assuming Q1 or Q2 can be done), how do I retrieve the rest of the spoken text to be stuffed into the reminder input?

and way in the future...

Question 4) Will it be possible to have a GN card with state, like you can only say 'send message to John', and GN will prompt you back "what is the message?" I'd like it to ask "what is the reminder" if you just say "remind evernote" with no further input.



No comments:

Post a Comment