2013-03-10 98 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);

相關問題