Тёмный

Whatsapp integration in android | how to open whatsapp in android programmatically | Android Studio 

Coding with Dev
Подписаться 3,3 тыс.
Просмотров 25 тыс.
50% 1

In this tutorial we will learn, How to open WhatsApp using an Intent in your Android App And Sending message from your application to a WhatsApp Number...
#AndroidStudioTutorial #Whatsapp #WhatsappIntegration
Follow Facebook Page Link - / coding-with-dev-101018...
Follow Instagram Link - / codingwithdev
For Bussiness Inquiries
-codingwithdev@gmail.com
-devendrac706@gmail.com
Subscribe My Channel #codingwitdev for more latest videos..
/ codingwithdev
Thank You :-)

Опубликовано:

 

23 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 54   
@kiranbahalaskar5813
@kiranbahalaskar5813 4 года назад
Thanks sir Finally best solution in this channel
@avvalyadav3625
@avvalyadav3625 3 года назад
Thank you so much, it really helped me, keep up the good work 👍❤️
@CodingwithDev
@CodingwithDev 3 года назад
Thanks for ur valuable response
@asifahmed1230
@asifahmed1230 4 года назад
Hello sir, how to check whether the number is registered on whatsapp or not? If not then we must be able to send the msg using text.
@irvingj.villanueva2318
@irvingj.villanueva2318 4 года назад
Good video you should do one for facebook, what i mean with this if the button is click it can show you a profile or page (in the fb app)
@tristangrobler4950
@tristangrobler4950 3 года назад
Worked great. On android 11 though it says app not installed when I do the check to see if it's installed. Don't suppose you can help fix this/do an updated video?
@tristangrobler4950
@tristangrobler4950 2 года назад
Not a perfect solution, but you could ignore the check, surround the method to open in whatsapp with a try catch. If it fails to open in Whatsapp then it means it is not installed and you can display a toast or dialog notifying the user.
@isaiasmponcio
@isaiasmponcio 4 года назад
this is excellent sir, thank you so much, respect!
@CodingwithDev
@CodingwithDev 4 года назад
@Chipp Thank you for ur valuable response...
@voker8840
@voker8840 4 года назад
Thanks! Nice Video, but can i let the message be send automatically?
@CodingwithDev
@CodingwithDev 4 года назад
No ,whats app not providing this feature.....
@elroicohenzemach9275
@elroicohenzemach9275 2 года назад
Do you have a discord server for help?
@iliass1
@iliass1 4 года назад
nice, what about sending images?
@CodingwithDev
@CodingwithDev 4 года назад
See the code below. Intent share = new Intent(Intent.ACTION_SEND); share.setType("image/jpeg"); share.putExtra(Intent.EXTRA_STREAM, Uri.parse("file:///sdcard/path-to-your-image.jpg")); share.setPackage("com.whatsapp");//package name of the app startActivity(Intent.createChooser(share, "Share Image"));
@_ytuser11
@_ytuser11 2 года назад
sir i have users phone number and i want that my users can click on one button and the person whom they want to talk to , their phonenumber should automatically open on whatsapp.please tell anyone please
@m3ndes387
@m3ndes387 4 года назад
how to send a message without opening whatsapp?
@rustum3300
@rustum3300 4 года назад
What if I wanted to send a set/template message all the time (eg. a Good Morning message) but its as a button so that I don't need to type it out all the time? Additionally, what if I want to send it to a chat and not a number (eg. a group chat) on WhatsApp? Thanks for your helpful video :)
@CodingwithDev
@CodingwithDev 4 года назад
First u need to load template message on listview or recyclerview then after click on item pass the data on PutExtra method...... i think this code for helpful... // Performs action on click Intent sendIntent = new Intent(); sendIntent.setAction(Intent.ACTION_SEND); sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send."); sendIntent.setType("text/plain"); sendIntent.setPackage("com.whatsapp"); startActivity(Intent.createChooser(sendIntent, "")); startActivity(sendIntent);
@rustum3300
@rustum3300 4 года назад
@@CodingwithDev Awesome, will check that out soon. Thank you very much, you've earned a sub!
@pulasthinarada6381
@pulasthinarada6381 3 года назад
Thank You Sir.
@fahmiazain
@fahmiazain 3 года назад
Great! Thank You! But.. How to handing when whatsapp number is not found?
@techsolutions1521
@techsolutions1521 3 года назад
I want to make a app which sends the photo from my app to a whatsapp contact without even opening the whatapp it should directly send the photo without opening the whatsapp I tried finding solution on internet but was unsuccessful ..hope you help..thanks in advance
@NGTV06
@NGTV06 2 года назад
Can i do the same with viber?
@shailysahoo4606
@shailysahoo4606 4 года назад
If the mobile number is not saved in the whatsapp contacts then how to send the message through whatsapp in that new number? Please Sir, let me know. Thanks in advance:)
@MrGlaiconn
@MrGlaiconn 4 года назад
Thanks sir
@bhattisa
@bhattisa 4 года назад
good code, but when I run on my mobile, only whatsapp screen opens (of same contact which has to send message) but no message is sent. Is there any permission required? pls reply
@CodingwithDev
@CodingwithDev 4 года назад
U can't send automatically Msg.. what's app not providing this feature...only u can pass the data ...
@aisyahfatihahhanafi
@aisyahfatihahhanafi 3 года назад
thank you so much
@CodingwithDev
@CodingwithDev 3 года назад
Thanks for your valuable response
@hodaelcohen
@hodaelcohen 3 года назад
Can it make the send automatically?
@sehjivimarketing5891
@sehjivimarketing5891 Год назад
App not installed even app is there?
@ex_09_vikrantneve55
@ex_09_vikrantneve55 3 года назад
Please me If I want to send image and text how to implement that
@subhankarsinha8135
@subhankarsinha8135 3 года назад
Sir how to share live location please tell me sir in whatsapp
@sergiocarranzaruiz4823
@sergiocarranzaruiz4823 4 года назад
Hi, this same but in IOS?
@CodingwithDev
@CodingwithDev 4 года назад
I think this code is work : var whatsappURL = URL(string: "api.whatsapp.com/send?phone=9530670491&text=hello") if UIApplication.shared.canOpenURL(whatsappURL) { UIApplication.shared.openURL(whatsappURL!) }
@sergiocarranzaruiz4823
@sergiocarranzaruiz4823 4 года назад
@@CodingwithDev Thx for the answer, trying
@jaanmohammad4711
@jaanmohammad4711 3 года назад
It's not working in android 11. Please anyone help me.
@ashikislam8370
@ashikislam8370 3 года назад
how to whatsapp call programically from other apps?
@tousifakhatun3393
@tousifakhatun3393 4 года назад
How to solve android resource linking failed error in android studio...at the runtime I'm facing this problem please suggest me.
@CodingwithDev
@CodingwithDev 4 года назад
hey tousifa, The Android resource linking failed error can also appear if you have an error in any of your XML resources file. In case u was using the following line twice in one of ur XML file: -------------------------------------------------------------------------------- if any case that not problem then...Also u had to add the following code to the platforms/android/app/build.gradle and platforms/android/build.gradle files: configurations.all { resolutionStrategy { force 'com.android.support:support-v4:27.1.0' }} Thank you :-)
@tousifakhatun3393
@tousifakhatun3393 4 года назад
@@CodingwithDev Still I'm unable to run
@CodingwithDev
@CodingwithDev 4 года назад
Sent me error log on email- codingwithdev@gmail.com
@m3ndes387
@m3ndes387 4 года назад
how to send a message without opening whatsapp without leaving the screen?
@arunchowdary7619
@arunchowdary7619 3 года назад
u need use api
@akashthorat7044
@akashthorat7044 3 года назад
This link is incorrect
@CamiloValencia
@CamiloValencia 4 года назад
Hello Sir, how i can send a file¡?
@CodingwithDev
@CodingwithDev 4 года назад
sorry dude,currently this feature not providing by whats app...
@CodingwithDev
@CodingwithDev 4 года назад
@BADG STUDIOS please follow my github profile .... github.com/devendrachavan/SendMsgToWhatsApp
@smileplease8151
@smileplease8151 4 года назад
Empty message showing Sir please help
@CodingwithDev
@CodingwithDev 4 года назад
When click on button please check edittext input value get or not...
@smileplease8151
@smileplease8151 4 года назад
@@CodingwithDev i forget to put = sorry i am new in this🙏 Thanks btw sir can i ask you something Can i parse Multiple edit text like username, address, contact, same time
@asifahmed1230
@asifahmed1230 4 года назад
Hello sir, how to check whether the number is registered on whatsapp or not? If not then we must be able to send the msg using text.
@asifahmed1230
@asifahmed1230 4 года назад
Hello sir, how to check whether the number is registered on whatsapp or not? If not then we must be able to send the msg using text.
@CodingwithDev
@CodingwithDev 4 года назад
Adding this code when what's app not installed on your device... try { SmsManager smsManager = SmsManager.getDefault(); smsManager.sendTextMessage(phoneNo, null, msg, null, null); Toast.makeText(getApplicationContext(), "Message Sent", Toast.LENGTH_LONG).show(); } catch (Exception ex) { Toast.makeText(getApplicationContext(),ex.getMessage().toString(), Toast.LENGTH_LONG).show(); ex.printStackTrace(); }
Далее
Распаковка iPhone 16 Pro Max
01:01
Просмотров 2,6 млн
Why Are Open Source Alternatives So Bad?
13:06
Просмотров 640 тыс.
How to Create Feedback Form in Android
9:59
Просмотров 12 тыс.
Nobody Cares About Your Coding Projects
11:02
Просмотров 107 тыс.