阅读背景:

Android:与内置应用程序共享时无法获取正确的文本

来源:互联网 

I used the following code.

我使用了以下代码。

 Intent share = new Intent(android.content.Intent.ACTION_SEND);
    share.setType("text/plain");
    share.putExtra(Intent.EXTRA_SUBJECT, subject);
    share.putExtra(
            Intent.EXTRA_TEXT,
            "i have just visited https://www.google.com");
    startActivity(Intent.createChooser(share,
            "Share Sydneyho! with your friends via"));
 Inten



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: