@@ -16,7 +16,7 @@ You first need to make sure to download the prerequisites for using this library
16
16
* [ codepath-utils.jar] ( https://www.dropbox.com/s/u8ixvp4lw9fh8l5/codepath-utils.jar )
17
17
* [ android-async-http-client.jar] ( https://www.dropbox.com/s/fr9e3mk193q605q/android-async-http-1.4.3.jar )
18
18
19
- Next download the [ codepath-oauth.jar] ( https://www.dropbox.com/s/hgeq6f1rs43tnlb/codepath-oauth-0.2.2.jar ) file.
19
+ Next download the [ codepath-oauth.jar] ( https://www.dropbox.com/s/hgeq6f1rs43tnlb/codepath-oauth-0.2.2.jar ) file.
20
20
Move all of these jars into the "libs" folder of the desired Android project.
21
21
22
22
If you want an easier way to get setup with this library, try downloading the
@@ -87,6 +87,13 @@ The next step to add support for authenticating with a service is to create a `L
87
87
public class LoginActivity extends OAuthLoginActivity<FlickrClient > {
88
88
// This fires once the user is authenticated, or fires immediately
89
89
// if the user is already authenticated.
90
+
91
+ @Override
92
+ protected void onCreate (Bundle savedInstanceState ) {
93
+ super . onCreate(savedInstanceState);
94
+ setContentView(R . layout. activity_login);
95
+ }
96
+
90
97
@Override
91
98
public void onLoginSuccess () {
92
99
Intent i = new Intent (this , PhotosActivity . class);
@@ -113,7 +120,7 @@ A few notes for your `LoginActivity`:
113
120
* Your activity must extend from ` OAuthLoginActivity<SomeRestClient> `
114
121
* Your activity must implement ` onLoginSuccess ` and ` onLoginFailure `
115
122
* The ` onLoginSuccess ` should launch an "authenticated" activity.
116
- * The activity should have a button or other view a user can press to trigger authentication.
123
+ * The activity should have a button or other view a user can press to trigger authentication via the connect() method (i.e. activity_login) .
117
124
118
125
In more advanced cases where you want to authenticate ** multiple services from a single activity** , check out the related
119
126
[ guide for using OAuthLoginFragment] ( https://github.com/thecodepath/android-oauth-handler/wiki/Advanced-Usage-with-OAuthLoginFragments ) .
0 commit comments