我想通过 Facebook 分享文本,所以点击此链接http://www.codeproject.com/Tips/457153/How-to-integrate-Facebook-Twitter-Linkedin-in-Andr,但在“FACEBOOK”的位置出现错误“因为facebook无法解决或不是一个领域..
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.single_list_item);
// Add it to Library
final SocialAuthAdapter adapter = new SocialAuthAdapter(new ResponseListener());
adapter.addProvider(Provider.FACEBOOK, R.drawable.facebook);
adapter = new SocialAuthAdapter(new ResponseListener());
ListView lv= (ListView)findViewById(R.id.listView);
lv.setAdapter(new CustomAdapter(this, adapter));
adapter.enable(share);