Skip to content

Instantly share code, notes, and snippets.

@brettkelly
Created September 19, 2012 21:36
Show Gist options
  • Select an option

  • Save brettkelly/3752451 to your computer and use it in GitHub Desktop.

Select an option

Save brettkelly/3752451 to your computer and use it in GitHub Desktop.
Session init for sample Evernote Android app
private File getTempDir() {
return new File(Environment.getExternalStorageDirectory(), APP_DATA_PATH);
}
private void setupSession() {
ApplicationInfo info = new ApplicationInfo(CONSUMER_KEY, CONSUMER_SECRET, EVERNOTE_HOST, APP_NAME, APP_VERSION);
session = new EvernoteSession(info, getTempDir());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment