Skip to content

Instantly share code, notes, and snippets.

@mosil
Created January 8, 2014 22:10
Show Gist options
  • Save mosil/8325393 to your computer and use it in GitHub Desktop.
Save mosil/8325393 to your computer and use it in GitHub Desktop.
Evernote SDK for Android
package biz.mosil.sample.evernote.workshop;
import com.evernote.client.android.EvernoteSession;
import android.app.Activity;
import android.os.Bundle;
public class ParentActivity extends Activity {
private static final String CONSUMER_KEY = "your consumer key";
private static final String CONSUMER_SECRET = "your consumer secret";
private static final EvernoteSession.EvernoteService EVERNOTE_SERVICE = EvernoteSession.EvernoteService.SANDBOX;
protected EvernoteSession mEvernoteSession;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mEvernoteSession = EvernoteSession.getInstance(this, CONSUMER_KEY, CONSUMER_SECRET, EVERNOTE_SERVICE);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment