我调用 Twitter 的 Intent 来分享文本。在不更改代码的情况下,从一天到另一天,此调用已停止工作。
Intent 是:
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);
谢谢
最佳答案
2014年7月,我发现推特 Activity 又改名了,现在叫“com.twitter.android.composer.ComposerActivity”。
关于android - 启动错误 "com.twitter.android.PostActivity",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19681018/