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.


Android Intents local API

android local api intents

  • Please log in to reply
No replies to this topic

#1 JamesT


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

Posted 03 February 2013 - 06:49 PM


I am trying to use the Android Intents to launch the create Note action.

At the moment I need to support two features:
  • Plain text note creation
  • Accept a prebuilt enex file that will be passed via the intent.
However, I can't find the relevant documentation to explain what I need to do.

I have tried the following :

		 Intent sendIntent = new Intent("com.evernote.action.CREATE_NEW_NOTE");
		 sendIntent.putExtra(Intent.EXTRA_TITLE, "Web Clip");
		 sendIntent.putExtra(Intent.EXTRA_TEXT, fullContents);

But the UI is not launched.

I have included the Evernote libs in my project (not sure I actually need to do this though?
The documentation I have been looking at is at this link:

What am I missing? I do not want to use the cloud API, and supporting the intents is all I need to do.

I have managed to get the above to work. I still need to be able to get the enex file working. I'm currently getting a NullPointerException from the Evernote fragment:

02-03 21:07:33.387: ERROR/NewNoteFragment(9601): java.lang.NullPointerException
	    at android.content.ContentResolver.openInputStream(ContentResolver.java:433)
	    at com.evernote.ui.NewNoteFragment.a(NewNoteFragment.java:2193)
	    at com.evernote.ui.QuickSaveFragment.e(QuickSaveFragment.java:97)
	    at com.evernote.ui.pp.run(QuickSaveFragment.java:83)
	    at java.lang.Thread.run(Thread.java:856)

Using something like the following:

File myFile = new File("/sdcard/mysdfile.txt");
FileOutputStream fOut = new FileOutputStream(myFile);
OutputStreamWriter osw = new OutputStreamWriter(fOut);


Intent evernote = new Intent();

Also tagged with one or more of these keywords: android, local api, intents

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Clip to Evernote