2015-10-17 8 views
0

我想在沒有本機應用程序的情況下將圖像和文本分享到Twitter。我已經安裝了Twitter的推薦,並用於共享此代碼面料插件:在沒有本地應用程序的情況下在Android中分享圖像到twitter

TweetComposer.Builder builder = new TweetComposer.Builder(this) 
.text("just setting up my Fabric.") 
.image(myImageUri); 
builder.show(); 

In the event that the Twitter app is not installed, TweetComposer will create an intent to interact with the Twitter.com in a browser. The browser ignores a specified image.是否有可能,如果沒有安裝本地應用發送圖像?

+0

你有沒有考慮過使用Twitter4j? http://twitter4j.org/en/code-examples.html#oauth – Eenvincible

回答

1

經過多次搜索,我最終選擇了Twitter4j庫來達到此目的。

另外this教程非常有幫助。

+0

感謝您的指導。 –

相關問題