【发布时间】:2018-09-04 04:16:23
【问题描述】:
Intent shareIntent = new Intent();
shareIntent.setAction(Intent.ACTION_SEND);
shareIntent.putExtra(Intent.EXTRA_SUBJECT, "Mass Venture");
shareIntent.putExtra(Intent.EXTRA_TEXT, "Download the Mass Venture Mobile Application to grab products with more offers. Use REFERENCE CODE:" + user_name);
shareIntent.setType("*/*");
startActivity(Intent.createChooser(shareIntent, "Refer & Earn"));
选择显示的whatsapp时,分享失败。我该如何解决这个问题?
【问题讨论】:
-
我也想使用其他资源(gmail、textmsg 等)分享消息。使用您提到的代码,我只能使用 whatsapp 共享
标签: android android-intent whatsapp