Evernote / evernote-sdk-android

Evernote SDK for Android
428 stars 168 forks source link

GUID of created note on business notebook is null #44

Open cathandnya opened 10 years ago

cathandnya commented 10 years ago

When a note is created on business notebook, the guid of result note is always null. How do I get the guid of created note?

The code is below:

session.getClientFactory().createBusinessNoteStoreClientAsync(new OnClientCallback<AsyncBusinessNoteStoreClient>() {
    @Override
    public void onSuccess(AsyncBusinessNoteStoreClient bNoteStore) {
        if (bNoteStore == null) {
            // failed
        } else {
            bNoteStore.createNoteAsync(note, nb, new OnClientCallback<Note>() {
                @Override
                public void onSuccess(Note data) {
                    String guid = data.getGuid();
                    /* guid is null!! but the note is created */
                }
                @Override
                public void onException(Exception exception) {
                    // failed
                }
            });
        }                                               
    }
    @Override
    public void onException(Exception ex) {
        // failed   
    }
});
15768737340 commented 9 years ago

Dict/1204

vRallev commented 9 years ago

Could you update the SDK to 2.0.0 and try again? The issue should be fixed.

charsfamily1106 commented 7 years ago

Thank you