direct send video or photo with multiline text to whatsapp.
i think you can use actvity starter
This is what I found in the community…
Please search before asking…
https://community.kodular.io/t/sending-message-in-whatsapp/81065?u=manbir
Can try this one​
Provide additional information as well bcoz I’m unable to clearly understand your question…
I think he mean that he need an extension that will send whatsapp messages directly without letting the user click the send button himself.Actually, that isn’t possible with whatsapp( or any other solcial media api or extension ).You need to confirm your self before sending a message, but you can’t send it directly.
yes it will continue
i need video or photo with multiline text share
i need send video or image with text to whatsapp
Do you mean that you want to send a video or image to a particular contact in whatsapp??
not particular
open choose option
Activity Java file :
package com.code2care.example.whatsappintegrationexample;
import java.io.FileNotFoundException;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.view.View;
import android.widget.EditText;
public class MainActivity extends ActionBarActivity {
private EditText message;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//Caption for the image!
message = (EditText) findViewById(R.id.caption);
}
public void sendMessae(View v) throws FileNotFoundException {
String whatsAppMessage = message.getText().toString();
//You can read the image from external drove too
Uri uri = Uri.parse("android.resource://com.code2care.example.whatsappintegrationexample/drawable/mona");
Intent intent = new Intent();
intent.setAction(Intent.ACTION_SEND);
intent.putExtra(Intent.EXTRA_TEXT, whatsAppMessage);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_STREAM,uri);
intent.setType("image/jpeg");
intent.setPackage("com.whatsapp");
startActivity(intent);
}
}
I would love to see an extension.
That doesn’t need an extension. that’s a simple activithy starter intent, that can be made without any extension, just the activity starter component (not sure if it’s compatible )
Thank you for your reply.
Not all users can read java Sometimes extensions makes simple things simpler.
No one told you to read java, just use the activity starter.But if you want an extension, here you are:
Try this : io.mohamed.WhatsApp.aix (7.8 KB)
I meant for “making the extension” part Yes, I had tried with the activity starter, but then I realized I used an incorrect path.
I appreciate your time.
Thanks, hope fully , it works
Great
U have to use taifuns sharing Extension