I am unable to find the problem in this code.
I am trying to do Facebook Integration where login is successful but problem comes at sharing time. During share, the dialog box must take the mentioned text and the values of 4 textViews.
Source Code :
pop.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener()
{
@Override
public boolean onMenuItemClick(MenuItem item) {
//Facebook Share
if(item.getItemId()== R.id.facebook) {
{
ShareDialog shareDialog = new ShareDialog(MainActivity.this);
if (ShareDialog.canShow(ShareLinkContent.class)) {
ShareLinkContent content = new ShareLinkContent.Builder(). setContentTitle("Test").
setContentUrl(Uri.parse("http://developers.facebook.com/android")).
setContentDescription(teamA.getText()+ scoreTeamA.getText()+ teamB.getText() + scoreTeamB.getText()).build();
shareDialog.show(content);
}
}
}
From the Share Pop-up Menu, when I click on Facebook it shows the URL context but doesn't show the values of 2-Text Edits and 2-textViews.
Snippet: