File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
src/AndroidClient/androidchat/src/main
java/servicestack/net/androidchat Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 3535public class LoginActivity extends AppCompatActivity {
3636 private ProgressBar progressBar ;
3737 private ObjectAnimator animation ;
38-
39- // For: http://localhost:11001/
40- private static final String TWITTER_KEY = "3H1FHjGbA1N0n0aT5yApA" ;
41- private static final String TWITTER_SECRET = "MLrZ0ujK6DwyjlRk2YLp6HwSdoBjtuqwXeHDQLv0Q" ;
42-
4338 private TwitterAuthClient twitterAuth ;
4439
4540 @ Override
@@ -67,7 +62,10 @@ protected void onCreate(Bundle savedInstanceState){
6762 ImageButton btnAnon = (ImageButton )findViewById (R .id .btnAnon );
6863 LoginActivity activity = this ;
6964
70- TwitterAuthConfig authConfig = new TwitterAuthConfig (TWITTER_KEY , TWITTER_SECRET );
65+ TwitterAuthConfig authConfig = new TwitterAuthConfig (
66+ getString (R .string .twitter_key ),
67+ getString (R .string .twitter_secret ));
68+
7169 Fabric .with (this , new Twitter (authConfig ));
7270
7371 twitterAuth = new TwitterAuthClient ();
Original file line number Diff line number Diff line change 55
66 <string name =" openDrawer" >Switch channels</string >
77 <string name =" closeDrawer" >Android Chat</string >
8+
9+ <string name =" facebook_app_id" >316911901802572</string >
10+
11+ <!-- For: http://localhost:11001/ -->
12+ <string name =" twitter_key" >3H1FHjGbA1N0n0aT5yApA</string >
13+ <string name =" twitter_secret" >MLrZ0ujK6DwyjlRk2YLp6HwSdoBjtuqwXeHDQLv0Q</string >
814</resources >
You can’t perform that action at this time.
0 commit comments