2011-02-24 34 views
0

我已經創建了一個應用程序,並將其與Facebook進行了整合。如何整合facebook api

的問題是有命名實施例中的Facebook包中的類文件,並將其與名爲FB xml文件相關聯,但數據不能從它顯示錯誤fb.xml作爲

setContentView(R.layout.fb); 
      mLoginButton = (LoginButton) findViewById(R.id.login); 
      mText = (TextView) Example.this.findViewById(R.id.txt); 
//   mRequestButton = (Button) findViewById(R.id.requestButton); 
      mPostButton = (Button) findViewById(R.id.postButton); 
      mDeleteButton = (Button) findViewById(R.id.deletePostButton); 

任何檢索到的想法如何解決這個問題?

回答

1

嘗試檢查按鈕是否爲空。如果是這樣,他們不能在XML中找到。這意味着你的XML包含錯誤。什麼是錯誤日誌?