Search the Community

Showing results for tags 'intent'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Calendars

  • Community Event Calendar
  • Evernote Events

Forums

  • General Discussions
    • Evernote General Discussions
    • Third Party Application Discussions
    • Using Evernote
    • Billing and Payments
  • Evernote Products
    • Evernote
    • Evernote Business
    • Evernote Web Clipper
    • Scannable
    • Skitch
    • Penultimate
  • International Forums
    • Japanese Discussions
    • Brazilian Portuguese Discussions
    • Discussions in Spanish
    • Korean Discussions
    • Traditional Chinese Discussions

Found 14 results

  1. I want to create snapshot notes simply be putting a specific finger on the fingerprint sensor to start the phone. Currently, it works when there's no open note within Evernote. I simply created a new app that sends an Evernote intent for a snapshot note. This makes taking new notes really fast and I like it. Unfortunately, when there's an unsaved SnapShot note open this intent opens the existing note instead of starting a new one. Ideally, I would like to send an intent or other API call that tells Evernote to save the existing note, so that I can start a new one. I started an StackOverflow question (https://stackoverflow.com/q/45644540/25282) and got the answer that this isn't possible via intents. Is there another way to do this via Evernotes API? I also would like to do the same for standard text notes.
  2. Apparently there is no specific intent to create a reminder instead of a note, because a reminder is actually a note with reminder properties. I found the attributes in struct:NoteAttributes reminderOrder reminderDoneTime (probably left blank) reminderTime (probably left blank) According to the API ( https://dev.evernote.com/doc/reference/Types.html) if I set the reminderOrder the note's considered a reminder, and by default I should just set it to TimeStamp (currentTime). However, the main note is set in struct:Note title content I checked the Android_intents documentation ( https://dev.evernote.com/doc/articles/android_intents.php) and there's part about EXTRA_TITLE, and EXTRA_TEXT that maps to title and content, I suppose. There doesn't seem to be any way to specify the noteAttributes I need to set through the Intents. So, can someone just tell me outright that it is NOT POSSIBLE to create a reminder through intents? Or is there a way to go through the Widget's Intents, or something? I found an intent in the widget called QUICKREMINDER (or something like that) but what do I pass to it? Is that documented anywhere?
  3. I fire intent with tags, however when new note is created it doesn't have tags that I supplied. After note is saved, tags appear. ArrayList<String> tags = new ArrayList<String>(); tags.add("test"); tags.add("test1"); intent.setAction("com.evernote.action.CREATE_NEW_NOTE"); intent.putExtra("TAG_NAME_LIST", tags);
  4. Hello I want to make a new note by Tasker through sending an intent action. While I can make a new note and specify the notebook, I don't know how to set tags by TAG_NAME_LIST. I searched but didn't find any result related to Tag. (Many discussion regarding the Intent/new note/notebook though) Could somebody teach me how to do so by an example? Thanks for your help in advance.
  5. Hi, I am trying to create a note using an enex file and sharing it view intent. Here is a snippet of my code: public static String APP_DATA_PATH = "/Android/data/com.evernote.android.sample/files/"; private static final String ENEX_PREFIX_PART_ONE = "<?xml version=\"1.0\" encoding=\"UTF-8\"?><!DOCTYPE en-export SYSTEM \"http://xml.evernote.com/pub/evernote-export.dtd\">" + "<en-export><note><title>";private static final String ENEX_PREFIX_PART_TWO = "</title><content><![CDATA[";private static final String ENEX_SUFFIX = "]]></content></note></en-export>";private static final String NOTE_PREFIX = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + "<!DOCTYPE en-note SYSTEM \"http://xml.evernote.com/pub/enml2.dtd\">" + "<en-note>";private static final String NOTE_SUFFIX = "</en-note>";public void createNoteUsingEnex() { // Create a dumb note for the sake of testing String noteTitle = "Sample Note Title"; String noteContent = "<h1>This is a headline</h1>" + "<p>This is a paragraph.</p>" + "<en-todo/>This is a checkbox"; if (Environment.MEDIA_MOUNTED.equals(Environment.getExternalStorageState()) == false) { Toast.makeText(getContext(), "No Storage.", Toast.LENGTH_SHORT).show(); Log.e("ShareMenuView", "can't create file: no storage available"); return; } File appDir = new File(Environment.getExternalStorageDirectory(), APP_DATA_PATH); File enexFile = new File(appDir, "sample.enex"); // Create a properly formatted ENEX file that defines the note we want created try { Log.d("ShareMenuView", "create enex cache file..."); if (appDir.exists() == false) { appDir.mkdirs(); Log.d("ShareMenuView", "enex cache folder doesn't exist, create one"); } if (enexFile.exists()) { enexFile.delete(); Log.d("ShareMenuView", "enex cache file exist, we delete it before we recreate it"); } Log.d("ShareMenuView", "we create a new enex file"); if (enexFile.createNewFile() == false) { Toast.makeText(getContext(), "Error creating ENML file", Toast.LENGTH_LONG).show(); Log.e("ShareMenuView", "error while creating a new enex file"); } else { PrintWriter out = new PrintWriter(new FileWriter(enexFile)); out.print(ENEX_PREFIX_PART_ONE); out.print(noteTitle); out.print(ENEX_PREFIX_PART_TWO); out.println(NOTE_PREFIX); out.println(noteContent); out.println(NOTE_SUFFIX); out.println(ENEX_SUFFIX); out.close(); } } catch (IOException iox) { Toast.makeText(getContext(), "Error creating ENML file", Toast.LENGTH_LONG).show(); return; } Intent intent = new Intent(); intent.setAction(Intent.ACTION_SEND); // Unlike sharing a file attachment, sharing an ENEX requires that you pass the file // in the data field, not the stream extra Log.d("ShareMenuView", "passing:" + enexFile); intent.setDataAndType(Uri.fromFile(enexFile), "application/enex"); try { getContext().startActivity( Intent.createChooser(intent, "Share using")); Toast.makeText(getContext(), "Success", Toast.LENGTH_SHORT) .show(); } catch (android.content.ActivityNotFoundException ex) { ex.printStackTrace(); Log.e("ShareMenuView", "error while sending the intent containing the file path"); Toast.makeText(getContext(), "error: activity not found", Toast.LENGTH_SHORT).show(); } } In return I get a: [SyncService] - Sync failedcom.evernote.j.b.c: HTTP Response code: 404(see the full stacktrace attached) Is there something I am doing wrong? Thanks in advance. evernoteEnexCrashStackTrace.txt
  6. Hey everyone, I was trying to create an intent in Android that would search in the Evernote app for a specific keyword (as described here: http://dev.evernote.com/doc/articles/android_intents.php). Sadly, I can't find the sample anywhere, and my current code doesn't work. This is what I have now: final String ACTION_EVERNOTE = "com.evernote.action.SEARCH_NOTES";String KEYWORD = "hoi";Intent i = new Intent();i.setAction(ACTION_EVERNOTE);i.putExtra(Intent.ACTION_SEARCH, KEYWORD);startActivity(i); So far, it only runs a * query, so it seems to ignore my keyword in the fifth line alltogether. Does anyone know what I am doing wrong? Any idea would be greatly appreciated! Thanks a lot in advance!
  7. I am using Tasker Application for Android, which allows to send action intents to application. I am trying to create new Note and put it to a specific existing notebook. I use CREATE_NEW_NOTE functionality and documentation states that NOTEBOOK_GUID extra is needed to assign a notebook. I searched the web, and mostly developers create their own notebook, and then notebook_guid is returned that way. Is it possible somehow to see notebook_guids for existing notebooks? With Android's intents it is not possible as far as I can see.. Thank in advance for any help. Dmitrij
  8. 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.
  9. Is there an Android Intent that can edit a specific note by specifying the GUID? Something like: com.evernote.action.EDIT_NOTE Ideally I'd like to be able to append information to a note so if there were a specific way to do that I'd be interested but just being able pass an intent that would open up the edit note screen of a specific note would work as well.
  10. Hi, Platform: Android Issue: HTML is not fully working with CREATE_NEW_NOTE Intent Details: I am trying to call CREATE_NEW_NOTE my app to trigger Evernote App with some pre-populated content in it. I want to send HTML to Evernote App in the EXTRA_TEXT value. It works for basic things like <BR> </B> <a href> etc. But it is not working for <ul> <Table> Etc Can you please help me to fix this issue. Sample Code: String text = "This is a sample <b> text file </b>. <BR> This is <a href=http://google.com> line </a> two. <br> <ul> <li>myItem 1</li> <li>myItem 2 </li> </ul> " + "<ul> " + "<li>myItem 1</li> " + "<li>myItem 2 </li> " + "<ul> <li>myItem 2a</li> </ul> " + "<li>myItem 3</li> " + "<li>myItem 4</li> " + "</ul>" + " <table> <tr> <td>row 1, cell 1</td> </tr> </table>" ; String title = "New Note with Content"; Intent intent = new Intent(); intent.setAction(ACTION_NEW_NOTE); intent.putExtra(Intent.EXTRA_TITLE, title); intent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(text)); try { startActivity(intent); } catch (android.content.ActivityNotFoundException ex) { Toast.makeText(this, R.string.err_activity_not_found, Toast.LENGTH_SHORT).show(); } Regards, Karthik
  11. Hi, I try create new note via android intent. I create it with title, text and tags. But I can't add location and source url. How can I put it into intent extra data? Here is my code with my testing putExtra: Intent evernote = new Intent(); evernote.setAction("com.evernote.action.CREATE_NEW_NOTE"); evernote.putExtra(Intent.EXTRA_TITLE, title); // it's ok evernote.putExtra(Intent.EXTRA_TEXT, text); // it's ok evernote.putExtra("TAG_NAME_LIST", tags); // as ArrayList, it's ok evernote.putExtra("EXTRA_SOURCE_APP", "My app name"); // NOT WORKING evernote.putExtra("EXTRA_SOURCE_URL", "http://www.url.com"); // NOT WORKING evernote.putExtra("SOURCE_URL", "http://www.url.com"); // NOT WORKING evernote.putExtra("SOURCEURL", "http://www.url.com"); // NOT WORKING evernote.putExtra("sourceUrl", "http://www.url.com"); // NOT WORKING evernote.putExtra("SOURCE", "http://www.url.com"); // NOT WORKING evernote.putExtra("sourceURL", "http://www.url.com"); // NOT WORKING evernote.putExtra("source_URL", "http://www.url.com"); // NOT WORKING evernote.putExtra("latitude", latitude); // NOT WORKING /* Start it */ startActivity(evernote); // it's ok Thanks a lot for your ideas. Jer
  12. There are two apps which I am using, both can create a note in Evernote on Android without using the Evernote app draft window: LectureNotes: after completing handwritten notes, a png image is directly pushed to evernote (not uploaded) AndMadeShare: using share button, directly create a note with whatever is beng shared, doesn't use evernote window at all I know how to use tasker (and android intents) to create notes, but they always use the Evenrote draft window. But sincee above apps can create notes invisibly, there is a way to create the note and save it without using evernote window, can someone tell me how it is done?
  13. Hello... I'm unable to create a enml formatted note using the android intent described in the local api documentation and as shown in the sample code. Here are details. Does anyone have any ideas that may help? Thanks in advance! Scott This problem is also mentioned by a few people at http://discussion.ev...intent-problem/. Once you select Evernote from the app chooser the screen turns black and just hangs there in Evernote. I'm running 2.3.5 on a samsung galaxy s with Evernote 4.0.4. Here's the code: Uri uri = Uri.fromFile(file); Intent intent = new Intent(); intent.setAction(Intent.ACTION_SEND); intent.setDataAndType(uri,""application/enex"); startActivity(Intent.createChooser(intent, "Share with:")); The file contents of note.enex: $ pwd /mnt/sdcard/data/com.evercite/files $ cat note.enex <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE en-export SYSTEM "http://xml.evernote.com/pub/evernote-export.dtd"><en-export><note><title>title</title><content><![CDATA[<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE en-note SYSTEM "http://xml.evernote.com/pub/enml2.dtd"><en-note> content </en-note> ]]></content></note></en-export> $ From the log: I/ActivityManager(109): Starting: Intent { act=android.intent.action.SEND dat=file:///mnt/sdcard/data/com.evercite/files/note.enex typ=application/enex flg=0x3000000 cmp=com.evernote/.note.composer.NewNoteActivity } from pid 2135 The first problem I see after calling the intent is 06-28 23:15:44.988: I/com.evernote.Evernote(2145): +++++++++openOrCreateDatabase()::start/mnt/sdcard/Evernote/.external-1322600773132-Evernote.db 06-28 23:15:44.988: I/com.evernote.Evernote(2145): ::evernoteSDcardPath=/mnt/sdcard/Evernote 06-28 23:15:44.988: E/com.evernote.Evernote(2145): ::stack trace= 06-28 23:15:44.992: E/com.evernote.Evernote(2145): java.io.IOException 06-28 23:15:44.992: E/com.evernote.Evernote(2145): at com.evernote.Evernote.openOrCreateDatabase(Evernote.java:283) 06-28 23:15:44.992: E/com.evernote.Evernote(2145): at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:118) Then the synch fails a couple of times further down in the log and hangs. Ilog attached log.txt
  14. My Android app exports simple text notes to Evernote using the documented Intent structure. It works well except when I use the QUICK_SEND option. In that case, the note is created with only the title; the EXTRA_TEXT string does not make it into the note. The Evernote version is 3.4.2 and this happens on multiple devices running Froyo, Honeycomb, and ICS.