So the call back is in the onActivityResult which the resultCode is either RESULT_OK or RESULT_CANCEL correct?
If in that case
intent = new TweetComposer.Builder(activity)
.text(tweet)
.url(new URL("http://" + Constant.CONTENT_URL))
.createIntent();
startActivityForResult(intent, TWEET_COMPOSER_REQUEST_CODE);
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == TWEET_COMPOSER_REQUEST_CODE) {
if (resultCode == RESULT_OK) {
Log.i("Tweet", "Posted");
}
}
}
is this correct? doesnt seem like i get resultCode = RESULT_OK.
Please check image below. This is after i click on tweet on the twitter intent
http://imgur.com/NxOp5GN