whatsapp

android-make whatsapp call

早过忘川 提交于 2019-11-26 20:16:28
问题 I want to make a WhatsApp call to a specific user. I tried this and it doesn't work: Uri uri = Uri.parse("callto:" + phoneNUmber); Intent i = new Intent(Intent.ACTION_CALL, uri); i.setPackage("com.whatsapp"); startActivity(i); I know how to create a WhatsApp message, the code is similar and it works: Uri uri = Uri.parse("smsto:" + phoneNUmber); Intent i = new Intent(Intent.ACTION_SENDTO, uri); i.setPackage("com.whatsapp"); startActivity(i); 回答1: Simple solution is, Query ContactContract.Data

Share image and text through Whatsapp or Facebook

邮差的信 提交于 2019-11-26 19:47:40
I have in my app a share button and i want to share an image and a text at the same time. In GMail it works fine but in WhatsApp, only the image is sent and in Facebook the app crashes. The code i use to share is this: Intent shareIntent = new Intent(Intent.ACTION_SEND); shareIntent.setType("image/*"); shareIntent.putExtra(Intent.EXTRA_TEXT, "Message"); Uri uri = Uri.parse("android.resource://" + getPackageName() + "/drawable/ford_focus_2014"); try { InputStream stream = getContentResolver().openInputStream(uri); } catch (FileNotFoundException e) { // TODO Auto-generated catch block e

How to share text to WhatsApp from my app?

心已入冬 提交于 2019-11-26 19:06:22
问题 I develop an app with a functionality for sharing text. This is working fine except for WhatsApp. What should I do? Is there any specific API for that? 回答1: There is no public official api for whats app....So it is not possible now. 回答2: You can use intent to do so. No need to use Whatsapp API. Hope that I have not misunderstood your question. Hope that helps, thanks. Intent whatsappIntent = new Intent(Intent.ACTION_SEND); whatsappIntent.setType("text/plain"); whatsappIntent.setPackage("com

Sending message through WhatsApp By intent

这一生的挚爱 提交于 2019-11-26 18:16:39
问题 How I can send massage from my app to Special number in whatsapp , I know this code to share massage to group or contact on whatsapp Intent waIntent = new Intent(Intent.ACTION_SEND); waIntent.setType("text/plain"); String text = "Sorry For Interruption,I'm Just Trying Something"; waIntent.setPackage("com.whatsapp"); if (waIntent != null) { waIntent.putExtra(Intent.EXTRA_TEXT, text);// startActivity(Intent.createChooser(waIntent,"Share with")); but I want send massage to Special number like

Add Whatsapp function to website, like sms, tel

梦想的初衷 提交于 2019-11-26 15:15:23
问题 I have a website that a lot of people view on mobile. I have link for : Call and SMS and I want to add one for Whatsapp, so a user can click the whatsapp link I create and start a conversation with me. If this is possible can someone point me in the right direction on how? 回答1: below link will open the whatsapp. Here "0123456789" is the contact of the person you want to communicate with. href="intent://send/0123456789#Intent;scheme=smsto;package=com.whatsapp;action=android.intent.action

WhatsApp API (java/python) [closed]

最后都变了- 提交于 2019-11-26 15:07:30
问题 I am looking for WhatsApp API, preferably a Python or Java library. I've tried Yowsup, but could not get my number registered; I am based in India and I am not sure if that has got anything to do with it. I did try WhatsAPI (Python library) but it is not working either. Any suggestions about this? Any users of Yowsup here? 回答1: After trying everything, Yowsup library worked for me. The bug that I was facing was recently fixed. Anyone trying to do something with Whatsapp should try it. 回答2:

Sharing link on WhatsApp from mobile website (not application) for Android

只愿长相守 提交于 2019-11-26 13:55:47
I have developed a website which is mainly used in mobile phones. I want to allow users to share information directly from the web page into WhatsApp. Using UserAgent detection I can distinguish between Android and iOS. I was able to discover that in order to implement the above in iOS I can use the URL: href="whatsapp://send?text=http://www.example.com" I'm still looking for the solution to be used when the OS is Android (as the above doesn't work). I guess it is somehow related to using "intent" in Android, but I couldn't figure out how to do it as parameter for href. Manuel Just saw it on a

WhatsApp image sharing iOS [closed]

六月ゝ 毕业季﹏ 提交于 2019-11-26 10:47:26
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I am developing an iOS application in which i have to share image on WhatsApp from my application. I found this code but it deals with only text sharing https://github.com/jberlana/JBWhatsAppActivity 回答1: That can be Possible using documentationInteractionController . Recently I have done this

How i get WhatsApp abid to compose a message to a specific user in iOS?

℡╲_俬逩灬. 提交于 2019-11-26 08:28:22
问题 How i get WhatsApp abid to compose a message to a specific user ? i want to send a text message when i select a contact in my app. This is my code: NSURL *whatsappURL = [NSURL URLWithString:@\"whatsapp://send?abid=XXX\"]; if ([[UIApplication sharedApplication] canOpenURL: whatsappURL]) { [[UIApplication sharedApplication] openURL: whatsappURL]; } WhatsApp official link: https://www.whatsapp.com/faq/iphone/23559013 回答1: Two recent solutions (July 2017) WhatsApp 'Click to Chat' API feature must

Sending message through WhatsApp

筅森魡賤 提交于 2019-11-26 03:15:09
问题 Since I found some older posts, that tell that whatsapp doesn\'t support this, I was wondering if something had changed and if there is a way to open a whatsapp \'chat\' with a number that I\'m sending through an intent? 回答1: UPDATE Please refer to https://faq.whatsapp.com/en/android/26000030/?category=5245251 WhatsApp's Click to Chat feature allows you to begin a chat with someone without having their phone number saved in your phone's address book. As long as you know this person’s phone