How to redirect another activity after successfully login with facebook in android?-Collection of common programming errors

I have used the Facebook SDK, as can be seen in my example:

mFacebook.authorize(this, new String[] { "friends_birthday", "friends_about_me", "read_friendlists" }, new DialogListener() {

            @Override
            public void onFacebookError(FacebookError arg0) {

            }

            @Override
            public void onError(DialogError arg0) {

            }

            @Override
            public void onComplete(Bundle arg0) {

                //start activity here. 

            }

            @Override
            public void onCancel() {

            }
        });

To start an activity in general (put this in onComplete()):

Intent intent = new Intent(context, TargetActivity.class);
startActivity(intent);

Also, make sure that you add the Target Activity into your AndroidManifest.xml. You must do this in tags. Without this, your application will crash.