After login from Facebook automatically goes to another screen?

I have written the codes to sign in with Facebook and have everything that is needed like Facebook libraries and create an application on Facebook and everything ended in earnest and I tried the logon process and also succeeded the problem in that he moves after registering to home activity automatically although he No code to move to another screen just I want after registering successfully to move to second activity

How can I do that?


public class MainActivity extends AppCompatActivity {

CallbackManager callbackManager;

LoginButton loginButton;


protected void onCreate(Bundle savedInstanceState) {




loginButton = (LoginButton) findViewById(;


loginButton.registerCallback(callbackManager, new...

Read More »

By: StackOverFlow - 6 days ago

Related Posts