2015-11-19 57 views
0

我想通過我的Android應用程序分享我的應用程序圖像和應用程序標題到instagram。通過Android應用程序分享圖片和標題到Instagram

我用下面的代碼爲同一

  Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND); 
      shareIntent.setType("image/*"); 
      shareIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
      shareIntent.putExtra(Intent.EXTRA_STREAM, getImageUri(SearchCategory.this, imagebitmap)); 
      shareIntent.putExtra(Intent.EXTRA_SUBJECT, "Subject"); 
      shareIntent.putExtra(Intent.EXTRA_TEXT, "YOUR TEXT TO SHARE IN INSTAGRAM"); 
      shareIntent.putExtra(Intent.EXTRA_TITLE, "YOUR TEXT HERE"); 
      shareIntent.setPackage("com.instagram.android"); 
      startActivity(shareIntent); 

但是,這是行不通的。

The instagram application version is7.11.0

請幫助相同。

+0

請清楚的問題,後期日誌或這事。 –

+0

我只能發送圖像,但主題,文本和標題不存在,在instagram中我只能看到圖像。 – AmeeJoshi

+0

http://stackoverflow.com/questions/16864138/how-to-send-a-photo-to-instagram-using-my-android-app –

回答

相關問題