I collect 3 pieces of information: name, address, product.
I want to send them to a specific whatsapp number, the number is always the same, i d like to send data preferably to a chat inside whatsapp.
TextView name = (TextView)findViewById(R.id.name);
TextView address = (TextView)findViewById(R.id.address);
TextView product = (TextView)findViewById(R.id.product);
The whatsapp FAQ on the website gives this code:
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send.");
sendIntent.setType("text/plain");
startActivity(sendIntent);
sendIntent.setPackage("com.whatsapp");
Where is the place to specify a number that data should go to?
I want the order data to go right into a specific chat to a specific phone number like +77056748392.
Not just opening whatsapp for sharing! I suspect Whatsapp API does not have this functionality?