Jump to content
Creater

Not able to update Note from Demo Android application

Recommended Posts

Hi All,

 

I am trying to update the note due to getNote method throws following exception EDAMUserException(errorCode:PERMISSION_DENIED, parameter:authenticationToken). please help me to find the solution ?

 

check my code for updating Note :

Note note =  noteStoreClient.getNote(noteGUID, false, true, false, false);						List<Resource> noteRes = note.getResources();						if(noteRes.size() == 1){							InputStream in = new BufferedInputStream(new FileInputStream(f));							FileData data = new FileData(EvernoteUtil.hash(in), f);							in.close();							Resource res = noteRes.get(0);							res.setData(data);							String content = EvernoteUtil.NOTE_PREFIX									+ "<p>This note was uploaded from Android. It contains an memo file.</p>"									+ EvernoteUtil.createEnMediaTag(res)									+ EvernoteUtil.NOTE_SUFFIX;							note.setContent(content);							noteStoreClient.updateNote(note);						}        

when i run the above code following exception i am getting..

07-17 16:56:03.199: E/BaseTask(11163): EDAMUserException(errorCode:PERMISSION_DENIED, parameter:authenticationToken)
07-17 16:56:03.199: E/BaseTask(11163): at com.evernote.edam.notestore.NoteStore$getNote_result.read(NoteStore.java:13514)
07-17 16:56:03.199: E/BaseTask(11163): at com.evernote.edam.notestore.NoteStore$Client.recv_getNote(NoteStore.java:1346)
07-17 16:56:03.199: E/BaseTask(11163): at com.evernote.edam.notestore.NoteStore$Client.getNote(NoteStore.java:1316)
07-17 16:56:03.199: E/BaseTask(11163): at com.evernote.client.android.asyncclient.EvernoteNoteStoreClient.getNote(EvernoteNoteStoreClient.java:438)
07-17 16:56:03.199: E/BaseTask(11163): at com.samsung.android.app.migration.evernote.task.ExportNoteBooksTask.checkedExecute(ExportNoteBooksTask.java:88)
07-17 16:56:03.199: E/BaseTask(11163): at com.samsung.android.app.migration.evernote.task.ExportNoteBooksTask.checkedExecute(ExportNoteBooksTask.java:1)
07-17 16:56:03.199: E/BaseTask(11163): at com.samsung.android.app.migration.evernote.task.BaseTask.execute(BaseTask.java:54)
07-17 16:56:03.199: E/BaseTask(11163): at net.vrallev.android.task.Task.executeInner(Task.java:67)
07-17 16:56:03.199: E/BaseTask(11163): at net.vrallev.android.task.TaskExecutor$TaskRunnable.run(TaskExecutor.java:191)
07-17 16:56:03.199: E/BaseTask(11163): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
07-17 16:56:03.199: E/BaseTask(11163): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
07-17 16:56:03.199: E/BaseTask(11163): at java.lang.Thread.run(Thread.java:818)

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...