我工作在一个Facebook的连接整合,我工作的这个教程: - https://developers.facebook.com/docs/android/登录-与Facebook的/ V2.0 它的工作好:我得到一个连接,但因为我已经集成了按钮,我的活动,该活动的其他部分采空工作。没有相互作用是可能的,在活动的其余部分。
I work on a facebook connect integration, I work on this tutorial : - https://developers.facebook.com/docs/android/login-with-facebook/v2.0 It's working well : I get a connection, but since I have integrated the button in my activity, the rest of the activity stoped working. No interaction is possible in the rest of the activity.
在我的主要活动的的onCreate
我有这个code:
In my main activity in the onCreate
I have this code:
if (savedInstanceState != null) {
// Or set the fragment from restored state info
mainFragment = (MainFragment) getSupportFragmentManager()
.findFragmentById(android.R.id.content);
} else {
// Add the fragment on initial activity setup
mainFragment = new MainFragment();
getSupportFragmentManager()
.beginTransaction()
.add(android.R.id.content, mainFragment)
.commit();
}
我认为这是分片巫婆会导致此问题,即使我不是很舒适处理片段。 我的活动是一个片段活动,MainFragment延伸片段。
I think it's the Fragment witch causes this issue, even if I am not very confortable dealing with fragments. My activity is a fragment activity and MainFragment extends fragment.
我读了很多话题的,但我没有找到任何答案来解决我的问题。 在此先感谢您的时间。
I read a lot of topic's but I didn't found any answers to solve my problem. Thanks in advance for your time.
我用一个其它的教程,它的工作见下图:
I use an other tutorial and it's work see below :
http://javatechig.com/android/using-facebook- SDK功能于Android的例子