2016-03-29 55 views
-1

我对这个主题很新,如何与图像和文本共享我的应用程序,播放存储链接,从服务器和图像获取我的图像和文本应该将不可见的共享内容后,请任何一个可以帮助我如何共享这些内容到其他应用程序,如最新的应用程序,Twitter和更多....如何发送图像和文本并安装应用程序链接共享到其他应用程序

这里我下面的代码

File filePath = getFileStreamPath("news_image"); 
      shareIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
      shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(filePath)); 
      shareIntent.setType("image/png"); 
      shareIntent.putExtra(Intent.EXTRA_TEXT, 
        "Here is my IMAGE"); 
      startActivity(Intent.createChooser(shareIntent, "Share IMAGE Using...")) 
+0

哪里是你的代码?你有尝试过什么吗? – Rocky

+0

也许你正在寻找毕加索。 –

+0

@chanti你想使用共享意图共享图像? –

回答

0

您应该遵循来自android documentation的建议。

片段从页面:

Intent intent = new Intent(Intent.ACTION_VIEW); 
intent.setData(Uri.parse("market://details?id=com.example.android")); 
startActivity(intent); 
+0

我的图像和文字没有分享@Selcuk Cihan – chanti

相关问题