Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mApp.setListener(new OAuthAuthenticationListener() {
- @Override
- public void onSuccess() {
- // tvSummary.setText("Connected as " + mApp.getUserName());
- String username = "hi";
- String password = "hi";
- String type = "register";
- BackgroundWorker backgroundWorker = new BackgroundWorker(getApplicationContext());
- backgroundWorker.execute(type, username, password);
- btnConnect.setText("Disconnect");
- llAfterLoginView.setVisibility(View.VISIBLE);
- // userInfoHashmap = mApp.
- mApp.fetchUserName(handler);
- }
- /*public void OnLogin() {
- }*/
- @Override
- public void onFail(String error) {
- Toast.makeText(MainActivity.this, error, Toast.LENGTH_SHORT)
- .show();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement