9

I want to send Some Pre-populated text message to specific user/users , I did the google and i came across some same kind of questions on stack overflow like

Send message to specific number whatsapp android? Send message to specific number whatsapp android?

and

Android: How to send message programatically by using whats app , We chat? Android: How to send message programatically by using whats app , We chat?

but i am not able to get the relevant solutions for intended task.

Any help will be appreciated .

Community
  • 1
  • 1
Priti
  • 107
  • 1
  • thnx .but the requirement is send message to specific user of whats app. – Priti Dec 09 '15 at 07:09
  • https://www.whatsapp.com/faq/en/android/28000012 you cant send to specific person anymore.. – Dhinakaran Thennarasu Dec 09 '15 at 07:13
  • Uri uri = Uri.parse("smsto:" + "123456789"); Intent i = new Intent(Intent.ACTION_SENDTO, uri); i.setPackage("com.whatsapp"); i.putExtra(Intent.EXTRA_TEXT,"Your text here"); // startActivity(Intent.createChooser(i, "gg")); startActivity(i); – Priti Dec 09 '15 at 07:23
  • I posted my source code it just open the chat screen of that specific user but the text i use in code is not displayed in that chatting screen. – Priti Dec 09 '15 at 07:24
  • that's not possible. it just open specific user and you need to manually give message. Only way is intent share what @Dhina specified. – Shadow Dec 09 '15 at 07:40

0 Answers0