1
我有以下代码为Android与其他应用程序如Facebook,Twitter,WhatsApp或Watever分享应用程序。我的Android应用程序共享我的应用程序链接到其他应用程序不起作用
它是开放的对话,并显示应用程序选择任何人,但是当我选择的应用程式它给我的消息共享失败,请稍后再试
Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setType("plain/text");
shareIntent.putExtra(Intent.EXTRA_TEXT, mWebView.getUrl());
startActivity(Intent.createChooser(shareIntent, "share_with"));
它只需将url复制到短信我想与其他应用程序共享,当我点击按钮时,它应该显示应用程序选择一个whatsapp viber imo或任何,所以我会选择该应用程序假设whatsapp,然后用户, –
它看起来像你做得很好[你可以参考这个](https://developer.android.com/training/sharing/send.html#send-text-content) –