public static Intent createGetBootstrapProfileNameIntent ( Context context , EvernoteSession evernoteSession ) { if ( evernoteSession . isForceAuthenticationInThirdPartyApp ( ) ) { // we don't want to use the main app, return null return null ; } EvernoteUtil . EvernoteInstallStatus installStatus = EvernoteUtil . getEvernoteInstallStatus ( context , EvernoteUtil . ACTION_GET_BOOTSTRAP_PROFILE_NAME ) ; if ( ! EvernoteUtil . EvernoteInstallStatus . INSTALLED . equals ( installStatus ) ) { return null ; } return new Intent ( EvernoteUtil . ACTION_GET_BOOTSTRAP_PROFILE_NAME ) . setPackage ( PACKAGE_NAME ) ; }
Returns an Intent to query the bootstrap profile name from the main Evernote app . This is useful if you want to use the main app to authenticate the user and he is already signed in .