2013-03-10 105 views
1

我把一个按钮来分享我在Facebook上的Android应用程序,所以我写了下面的代码在Facebook上分享Android应用程序与影像图标

Intent intent = new Intent(Intent.ACTION_SEND); 
intent.setType("text/plain"); 
// add the app link 
intent.putExtra(Intent.EXTRA_TEXT, "http://play.google.com/store/apps/details? id=com.phonelight.realparrot"); 
startActivity(Intent.createChooser(intent, "Share with Facebook")); 

共享后,我打开了我的Facebook帐户,看到以下内容:

image

正如你所看到的,它应该是在右方的图像。我想知道我怎么能把这个图像,我想要把我的图标应用程序

就像你共享一个YouTube链接,图像将是电影的第一枪。

+0

我得到同样的问题 – Harshid 2013-05-20 05:13:51

+0

我得到同样的问题 – MSaudi 2014-11-03 09:15:08

回答

0

变化intent.setType("text/plain");intent.setType("image/*"); 再加入intent.putExtra(Intent.EXTRA_STREAM, myImageContentUri);

相关问题