如何在whatsapp上分享html内容?

时间:2017-02-11 09:20:51

标签: android html whatsapp

String Content = Constants.SHARING_PROGRAM_DETAIL +
                        "< b r > <b r> <b>" + prog Name + "</b>
</b r></b r>" + "  " +
                        "<b r>" + "   " + "</b r>" +
                        "<b r>" + synopsis + "</b r>" + "   " +
                        "<b r>" + "   " + "</b r>" +
                        "b" + " Also Showing On:  " +
                        "<br>" + "   " + "</br>" +
                        "</br>" + StartDateTime;

//                //pop up all options of share
                Intent i = new Intent(android.content.Intent.ACTION_SEND);
                i.setType("*/*");


 i.putExtra(android.content.Intent.EXTRA_SUBJECT, progName);

i.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml(shareContent));
                start Activity(Intent.create Chooser(i, "Share via"));

我使用过此代码..任何人都可以告诉我这里的错误 我的内容未与whatsapp共享

0 个答案:

没有答案