James Davis 3 Posted June 26, 2012 Share Posted June 26, 2012 Hey everyone,So, it is mentioned in the HelloEDAM project, as well as the readme and random parts of the interwebz. However, I haven't seen a concrete example of how to cache an AuthenticationResult.Can someone please give me an example of such? I would really appreciate it, thank you in advance![i feel like the answer has been staring me in the face this whole time. I really hope that is not the case >__>]/*** Setup the EvernoteSession used to access the Evernote API.*/private void setupSession() {ApplicationInfo info = new ApplicationInfo(CONSUMER_KEY, CONSUMER_SECRET, EVERNOTE_HOST, APP_NAME, APP_VERSION);// TODO Retreived the cached Evernote AuthenticationResult if it exists// if (hasCachedEvernoteCredentials) {// AuthenticationResult result = new AuthenticationResult(authToken, noteStoreUrl, webApiUrlPrefix, userId);// session = new EvernoteSession(info, result, getTempDir());// } else { session = new EvernoteSession(info, getTempDir());// }updateUi();} Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.