Hi,
The easiest way to share image on twitter is by using the tweet-composer.
TweetComposer.Builder builder = new TweetComposer.Builder(this)
.text("just setting up my Fabric.")
.image(myImageUri);
builder.show();
The image Uri should be a file Uri (i.e. :code:file://<absolute_path> scheme) to a local file. For example,
File myImageFile = new File("/path/to/image");
Uri myImageUri = Uri.fromFile(myImageFile);
If you want to know when the tweet has been updated, instead of calling builder.show(), you can call builder.createIntent() and then call startActivityForResult.
Intent intent = new TweetComposer.Builder(this)
.text("Tweet from Fabric!")
.url(new URL("http://www.twitter.com"))
.createIntent();
startActivityForResult(intent, TWEET_COMPOSER_RESULT);