Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- authAPI.logIn(new InstagramSessionHandler() {
- @Override
- public void onProfileDataReceived(Profile profile) {
- startActivity(new Intent(MainActivity.this,ProfileActivity.class));
- finish();
- }
- @Override
- public void onErrorOccurred(String error) {
- Toast.makeText(getApplicationContext(),error,Toast.LENGTH_LONG).show();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement