Hello,
I want to get a callback from TweetComposer after a tweet is posted
to determine if the tweet is posted successfully or not.
I created onActivityResult method like as below, but resultCode is always zero and data is always null.
// In my app activity
Intent intent = new TweetComposer.Builder(TweetComposerMainActivity.this)
.text("Hello")
.createIntent();
startActivityForResult(intent, 999);
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == RESULT_OK) {
// do something
}
}
I’ve read this post.
Is there way to determine if a tweet is posted successfully when I use TweetComposer?