在android共享菜单中显示facebook、twitter和其他已安装的应用程序

在android共享菜单中显示facebook、twitter和其他已安装的应用程序,android,eclipse,facebook,android-intent,Android,Eclipse,Facebook,Android Intent,我想在我的应用程序中添加共享选项,从那里我可以将图像共享到手机上安装的任何应用程序(Facebook、twitter、watsapp、Gmail)。但当我使用下面的代码时,它只显示下面提到的应用程序,如下图所示。如何添加其他应用程序 Intent sharingIntent = new Intent(Intent.ACTION_SEND); sharingIntent.setType("IMAGE/png"); sharingIntent.putExtra(android.content.Int

我想在我的应用程序中添加共享选项,从那里我可以将图像共享到手机上安装的任何应用程序(Facebook、twitter、watsapp、Gmail)。但当我使用下面的代码时,它只显示下面提到的应用程序,如下图所示。如何添加其他应用程序

Intent sharingIntent = new Intent(Intent.ACTION_SEND);
sharingIntent.setType("IMAGE/png");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml("<p>This is the text that will be shared.</p>"));
startActivity(Intent.createChooser(sharingIntent,"Share using"));
Intent sharingcontent=新的意图(Intent.ACTION\u SEND);
sharingcontent.setType(“IMAGE/png”);
sharingcontent.putExtra(android.content.Intent.EXTRA_TEXT,Html.fromHtml(“这是将被共享的文本。

”); startActivity(Intent.createChooser(共享内容,“共享使用”);

意图共享内容=新意图(Intent.ACTION\u SEND);
sharingcontent.setType(“文本/普通”);
sharingcontent.putExtra(android.content.Intent.EXTRA_TEXT,Html.fromHtml(“这是将被共享的文本。

”); startActivity(Intent.createChooser(共享内容,“共享使用”);
您的设备上安装了哪些应用程序、twitter和facebook?是的,已经安装了应用程序。谢谢,它正在工作。。。现在它也在显示其他应用程序,但当它点击facebook时,它会打开facebook共享页面,但不会显示我发送的文本和图片。
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml("<p>This is the text that will be shared.</p>"));
startActivity(Intent.createChooser(sharingIntent,"Share using"));