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 2135The first problem I see after calling the intent is06-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














