How to pass text to Google Voice SMS Programmatically?
Asked Answered
O

1

12
I use the following code to start the SMS application:   

Intent smsIntent=new Intent(Intent.ACTION_SENDTO,   Uri.parse("sms:"));
smsIntent.putExtra("sms_body", "Message Body");
startActivity(smsIntent);

It works fine if user selects standard "Messaging" application. But if user selects GV the message body text is ignored.

I have also tried the following as suggested in some forums:

smsIntent.putExtra(Intent.EXTRA_TEXT, "Message Body");

I have searched all the forums I know of and tried lot of things. Nothing worked for me. Am I missing something here? Does GV need a special handing that it can’t be treated as regular “Messaging” app?

Ostentation answered 10/1, 2011 at 11:53 Comment(4)
Try smsto: instead of sms: and see if that helps.Brutal
Changing "sms" to "smsto" didn't help.Ostentation
Jas: did you ever get an answer to this problem? I'm running into the same issue and can't figure out any way to get the text to show up in the message body in GV.Thermonuclear
Did anyone find a solution to this?Topi
P
1

Here are some thoughts that might point you in the right direction:

Hopefully one of these help you out...

Poston answered 16/2, 2012 at 0:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.