我要求通过WhatsApp发送自定义方案的网址( myapp://app.myapp.com/data
) . 但是在WhatsApp中它没有显示自定义方案( myapp://
)作为链接 . 只有 app.myapp.com/data
显示为链接 . 我试过下面的代码:
Intent intent = new Intent();
intent.setAction(Intent.ACTION_SEND);
intent.putExtra(Intent.EXTRA_TEXT,"Please check this link: "+Html.fromHtml("myapp://app.myapp.com/data"));
intent.setType("text/plain");
startActivity(Intent.createChooser(intent, "Select Chooser to send friend"));
是否有可能在Android平台上的WhatsApp上发送自定义方案的链接?
1 回答
试试这段代码: