I figured it out. I was suppose to create a separate xml for the Fragment.
On Monday, February 25, 2013 9:56:05 AM UTC-6, blitz wrote: > > I setup FB Login into an Activity and also created a class > MainFragment.java which follows FB's tuturial perfectly. Found here: > https://developers.facebook.com/docs/howtos/androidsdk/3.0/login-with-facebook/ > > The login works well, but the App is stuck in the Fragment and therefore > the rest of my App is not responding. Probably a simple fix. Wondering > what I missed to add to ensure the remaining codes still executes? Here is > my code added for the FB Login from my MainActivity class: > > public class MainActivity extends FragmentActivity { > > private MainFragment mainFragment; > > @Override > public void onCreate(Bundle savedInstanceState) { > super.onCreate(savedInstanceState); > if (savedInstanceState == null) { > // Add the fragment on initial activity setup > mainFragment = new MainFragment(); > getSupportFragmentManager() > .beginTransaction() > .add(android.R.id.content, mainFragment) > .commit(); > } else { > // Or set the fragment from restored state info > mainFragment = (MainFragment) getSupportFragmentManager() > .findFragmentById(android.R.id.content); > } > -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

