0
facebookをクリックしてコンテンツを共有するときに、アクション共有アクティビティをプログラムする方法。Androidで共有アクティビティの動作をプログラミングする方法は?
私はコンテンツのFacebookを作成するが、私はFacebookの共有をクリックした時を示す方法を知ってはいけません。
Intent sendIntent = new Intent(Intent.ACTION_SEND);
sendIntent.setType("text/plain");
sendIntent.putExtra(Intent.EXTRA_SUBJECT, "Compartir");
sendIntent.putExtra(Intent.EXTRA_TEXT, "Descargar");
startActivity(sendIntent);
private void shareFacebook(){
shareDialog = new ShareDialog(this);
ShareLinkContent linkContent = new ShareLinkContent.Builder()
.setContentTitle("Hello Facebook")
.setContentDescription(
"The 'Hello Facebook' sample showcases simple Facebook integration")
.setContentUrl(Uri.parse("http://developers.facebook.com/android"))
.setImageUrl(...)
.build();
shareDialog.show(linkContent);
}