import java.io.IOException;
import org.average.whereami.ClientCredentials;
-import org.average.whereami.CredentialStore;
+import org.average.whereami.PersistentStore;
import android.app.Activity;
import android.os.Bundle;
ClientCredentials.CLIENT_SECRET,
code,
ClientCredentials.REDIRECT_URI).execute();
- CredentialStore credentialStore =
- new CredentialStore(prefs);
+ PersistentStore credentialStore =
+ new PersistentStore(prefs);
credentialStore.write(accessTokenResponse);
finish();
} else if (url.indexOf("error=")!=-1) {
- new CredentialStore(prefs).clear();
+ new PersistentStore(prefs).clear();
finish();
}
} catch (IOException e) {