Cannot receive broadcast after compose a tweet by TweetComposer



I’m trying to compose Tweet by TweetComposer , with the tutorial I can compose successfully.

My problem is after compose,I cannot receive the result broadcast.

I have create a BroadcastReceiver

public class TwitterReceiver extends BroadcastReceiver {
    public void onReceive(Context context, Intent intent) {
        if (TweetUploadService.UPLOAD_SUCCESS.equals(intent.getAction())) {
            Log.i("share","share success");
        } else {
            Log.i("share","share fail");

and add it to the manifest.xml file

<receiver android:name=".TwitterReceiver"
                <action android:name=""/>
                <action android:name=""/>

I don’t know if I have missed something,can someone me?

Thank you!

Tweet Composer callback

How are you launching the Composer? Using TweetComposer#Builder() will launch composer activity in the native Twitter Android app. In this case I don’t think any broadcast is sent. The code shown above should work when using the native composer with app install card.

Show Twitter composer:
Show native composer with app install card:


Thank you for your reply.I will try it.