Skip to content

Clarify README.md file. #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 12, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ You first need to make sure to download the prerequisites for using this library
* [codepath-utils.jar](https://www.dropbox.com/s/u8ixvp4lw9fh8l5/codepath-utils.jar)
* [android-async-http-client.jar](https://www.dropbox.com/s/fr9e3mk193q605q/android-async-http-1.4.3.jar)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI these Dropbox links are 404'ng now.. ..I found that I also had to use codepath-oauth-2.4 to compile correctly too.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed the links thanks for bringing this to my attention


Next download the [codepath-oauth.jar](https://www.dropbox.com/s/hgeq6f1rs43tnlb/codepath-oauth-0.2.2.jar) file.
Next download the [codepath-oauth.jar](https://www.dropbox.com/s/hgeq6f1rs43tnlb/codepath-oauth-0.2.2.jar) file.
Move all of these jars into the "libs" folder of the desired Android project.

If you want an easier way to get setup with this library, try downloading the
Expand Down Expand Up @@ -87,6 +87,13 @@ The next step to add support for authenticating with a service is to create a `L
public class LoginActivity extends OAuthLoginActivity<FlickrClient> {
// This fires once the user is authenticated, or fires immediately
// if the user is already authenticated.

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
}

@Override
public void onLoginSuccess() {
Intent i = new Intent(this, PhotosActivity.class);
Expand All @@ -113,7 +120,7 @@ A few notes for your `LoginActivity`:
* Your activity must extend from `OAuthLoginActivity<SomeRestClient>`
* Your activity must implement `onLoginSuccess` and `onLoginFailure`
* The `onLoginSuccess` should launch an "authenticated" activity.
* The activity should have a button or other view a user can press to trigger authentication.
* The activity should have a button or other view a user can press to trigger authentication via the connect() method (i.e. activity_login).

In more advanced cases where you want to authenticate **multiple services from a single activity**, check out the related
[guide for using OAuthLoginFragment](https://github.com/thecodepath/android-oauth-handler/wiki/Advanced-Usage-with-OAuthLoginFragments).
Expand Down