title: How to go Next Activity directly after Login in facebook SDK 3.0 in android
body: <p>i am using facebook SDK 3.0 when i am login to facebook it come back to login screen than go to next Activity but i want to go directly to Next Activity.</p>
  
  <p>This is my Code :-</p>
  
  <pre><code>if (session.isOpened()) {
          token = session.getAccessToken();
          Log.i("TAG", "Access Token" + token);
          Request.executeMeRequestAsync(session,new Request.GraphUserCallback() {
              @Override
              public void onCompleted(GraphUser user, Response response) {
                      if (user != null) {
                          id = user.getId();
                          Log.i("TAG", "User ID " + user.getId());
                          Log.i("TAG", "Email "+ user.asMap().get("email"));
  
                              try {
                                  URL image_value = new URL("http://graph.facebook.com/"+id+"/picture?type=large" );
                                  profPict=BitmapFactory.decodeStream(image_value.openConnection().getInputStream());
  
                                      } catch (MalformedURLException e) {
                                          // TODO Auto-generated catch block
                                          e.printStackTrace();
                                      } catch (IOException e) {
                                          // TODO Auto-generated catch block
                                          e.printStackTrace();
                                      }
  
                                      //http://graph.facebook.com/4/picture
  
                                      Intent i = new Intent(MainActivity.this,Next.class);
                                       i.putExtra("BitmapImage", profPict);  
                                      startActivity(i);
                                      // lblEmail.setText(user.asMap().get("email").toString());
                              }
                      }
              });
  }
  </code></pre>
  
  <p>And <code>onActivityResult()</code></p>
  
  <pre><code>@Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
      super.onActivityResult(requestCode, resultCode, data);
      Session.getActiveSession().onActivityResult(this, requestCode,
              resultCode, data);}
  </code></pre>