Google Voice SMS intent
Asked Answered
C

2

1

Right now I'm trying to create an SMS intent with a populated number.

Intent sendIntent = new Intent(Intent.ACTION_VIEW);
sendIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
sendIntent.setData(Uri.parse("smsto:"+phoneNumber));
context.startActivity(sendIntent);
setResultData(null);

this works fine with the phone's SMS app, however the problem is that if Google Voice is installed and the user selects this option rather than the normal SMS app, google voice won't populate the number.

Is there a way to populate the number in google voice with an SMS intent?

Chauchaucer answered 22/3, 2011 at 3:13 Comment(0)
O
0

You can check here "list of google voice intents and arguments" http://groups.google.com/group/appinventor/browse_thread/thread/2e857e86f113109b?tvc=2&pli=1

Owings answered 22/3, 2011 at 3:24 Comment(0)
C
0

This blog post seems to be about what you are after: the Intent setting the phone number for the SMS. The redundant setting of metadata maybe helps Google Voice-enhanced phones.

http://juristr.com/blog/2009/12/android-sms-activity-doesnt-fill-phone/

Cufic answered 6/4, 2011 at 13:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.