在我的android应用程序中,我希望用户通过whatsapp向他的朋友发送应用程序链接。我能够发送信息,但我也必须存储接收者的电话号码,以便如果他的朋友(接收者)安装应用程序,发送者将得到奖励。下面是我发送whatsapp消息的代码:
Intent waIntent = new Intent(Intent.ACTION_SEND);
waIntent.setType("text/plain");
String text = "link to app";
waIntent.setPackage("com.w
如何通过我在iOS上的应用程序向whatsapp上的特定联系人发送图像?
Android提供了将图片分享给特定联系人的意图,例如:
Intent sendIntent = new Intent("android.intent.action.SEND");
File f=new File("path to the file");
Uri uri = Uri.fromFile(f);
sendIntent.setComponent(new ComponentName("com.whatsapp","com.whatsapp.ContactPi