Jump to content

Welcome! You're currently a Guest.

If you'd like to join in the Discussion, or access additional features in our forums, please sign in with your Evernote Account here. Have an Evernote Account but forgot your password? Reset it! Don't have an account yet? Create One! You'll need to set your Display Name before your first post.

Photo

Using Tasker and Intent for absolute beginner

intent tasker android

  • Please log in to reply
10 replies to this topic

#1 lockiedownunder

lockiedownunder

  • PipPip
  • Title: Alliance Lackey
  • Group: Members
  • 69 posts

Posted 12 January 2013 - 10:19 PM

Hello, I'm a long time user of Evernote and a new user of Tasker.

I have just learnt that I can use Tasker to create a new note! - Yippe I can do that.

Can anyone give me an exact example on how to use Tasker to send the EXTRA_TITLE and EXTRA_???? for the body text.

If you require more info please ask, I would really like to learn how to do this. I can provide screen shots etc if required.

#2 mgb

mgb

  • Pip
  • Title: Member
  • Group: Members
  • 4 posts

Posted 24 January 2013 - 07:31 AM

Just figured it out myself. This screenshot should give you a pretty good idea of usage.

http://www.evernote....3a6bdccbde642e4

%EVERNOTETITLE and %EVERNOTEBODY are variables I created, but they could just as easily be hard-coded text, e.g. "android.intent.extra.TITLE:test title" and "android.intent.extra.TEXT:test text"

If you want to fiddle with tags and other fields, take a look at these URLs for more information (these URLs are how I figured out the little bit that I did):

http://dev.evernote....ers/Android.php
http://developer.and...html#EXTRA_TEXT

I don’t actually frequent these boards and just came across this post on a google search for the same issue, so forgive me in advance if I miss any follow up.

#3 lockiedownunder

lockiedownunder

  • PipPip
  • Title: Alliance Lackey
  • Group: Members
  • 69 posts

Posted 27 January 2013 - 07:21 AM

That's amazing, Thankyou!
My little app now allows me to press my widget when I arrive on a customers job. Then pressing the widget at the completion of the job and a new Evernote note is created with the start and finish times, GPS co-ordinates etc.

I would love to be able to add the tag the note but Tasker only has two fields for EXTRA. and I am using one to set the Title and the second one to set the text.

Anyone know how I can combine the two or know how I might tag the note?
Posted Image

#4 indrex

indrex

  • PipPip
  • Title: Alliance Lackey
  • Group: Members
  • 65 posts

Posted 29 January 2013 - 05:13 PM

thanks, I am not able to get TAG_NAME_LIST to work. How do you feed an array? I am entering as text. And it seems I need to enter in some java code.

#5 mgb

mgb

  • Pip
  • Title: Member
  • Group: Members
  • 4 posts

Posted 29 January 2013 - 06:02 PM

I have a couple thoughts on the posts above. I'm not a java programmer (or any programmer) so these are just potential directions to explore, not answers.
  • I think java uses JSON for passing variables. You could try JSON syntax for passing an array.
  • To get around the two extra field limitation, you could try separating entries in the extra fields using a semicolon. No idea if that would work.
  • The most reliable approach, but probably the most work would be to use the file import feature identified in the evernote android documentation:

If you want to take full control over the contents of a note, you can create a file formatted using Evernote's export file format, which is documented in the Evernote Export DTD:http://xml.evernote....note-export.dtd.

  • You would need to use tasker's file reading, writing, and string manipulation functions to massage the file into the format you want. I've never used any of those before, so can't be much help there.
  • If I were doing this, I would:
  • create a template note in desktop Evernote with the desired tags, etc., then
  • export that to the Evernote export format, then
  • play with tasker to figure out how to edit the exported file as desired.
Good luck!

#6 lockiedownunder

lockiedownunder

  • PipPip
  • Title: Alliance Lackey
  • Group: Members
  • 69 posts

Posted 31 January 2013 - 09:09 AM

Ok I can manipulate an ENEX file but before I go down this path, how do I automatically get Evernote to import that on my Android phone?

#7 mgb

mgb

  • Pip
  • Title: Member
  • Group: Members
  • 4 posts

Posted 01 February 2013 - 10:04 PM

Take a look at the third item down under the SEND action.

http://dev.evernote....ers/android.php

From what I can tell, this would be invoked instead of "com.evernote.action.CREATE_NEW_NOTE" using the tasker send intent.

If you do get this to work, please provide post a note on what you ended up doing, if possible.

#8 lockiedownunder

lockiedownunder

  • PipPip
  • Title: Alliance Lackey
  • Group: Members
  • 69 posts

Posted 02 February 2013 - 10:47 AM

I give up this is too hard. I have chosen to write a Scene to collect the information needed and just email it into Evernote with Silent Email.
This way I can specify Notebook and Tags in the subject. Unfotunately this wont give me the gps for the note but cant have everything i guess.

#9 mgb

mgb

  • Pip
  • Title: Member
  • Group: Members
  • 4 posts

Posted 03 February 2013 - 12:47 AM

Yep, I certainly understand that.

You might as well collect the longitude and latitude and include it at the end of the silent email. Evernote (windows) does allow you to manually modify the gps, so if you at least record the information, you could later plug it in manually or perhaps figure out some sort of script to do it after the fact.

#10 eeee

eeee

  • Pip
  • Title: Member
  • Group: Members
  • 1 posts

Posted 30 April 2013 - 12:08 PM

Hi, I'm new to android/tasker and I tried setting up an intent to open up a specific note.  Two things:

 

1) Any simple way to find the GUID of a note?  Only way I can find is to get the SDK, call the function to retrieve the GUID from a note in the code and output somewhere that for my reference

2) Even if I don't specify the GUID, the documentation says Evernote should open the top note?  Nothing seems to happen when I execute the tasker task.  I also tried opening the Evernote search through tasker also with no luck.  Any tips appreciated (I have evernote installed on my android, do I need anything else?)



#11 spiegro

spiegro

  • Pip
  • Title: Member
  • Group: Members
  • 2 posts

Posted 03 October 2013 - 06:30 PM

To the last poster, who I'm sure already came across this solution, but will definitely help any n00bs looking for how to find a NOTEBOOK_GUID: http://discussion.ev...-notebook-guid/.







Also tagged with one or more of these keywords: intent, tasker, android

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Clip to Evernote