Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error starting "com.twitter.android.PostActivity"

I call a intent to Twitter to share a text. Without changing the code, from one day to another, this call has stopped working.

The Intent is:

Intent share = new Intent(Intent.ACTION_VIEW);
    share.setClassName("com.twitter.android",
            "com.twitter.android.PostActivity");
    share.setType("text/plain");

    share.putExtra(Intent.EXTRA_TEXT, getString(R.string.app_share_twitter));

    share.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET);
    startActivityForResult(share, SHARE_TWITTER);

Thanks

like image 817
MarkOccam Avatar asked Nov 30 '22 00:11

MarkOccam


1 Answers

In July 2014, I've found that the Twitter activity has once again changed name, it is now called "com.twitter.android.composer.ComposerActivity".

like image 91
Majix Avatar answered Dec 04 '22 12:12

Majix