android - Sending an SMS using Google Voice -


i have app need able send sms messages. have code send them directly, give option use google voice users don't have messaging plans. know how this? can't seem find way. here way doing now:

stringbuffer buffer = new stringbuffer(); buffer.append("geoc "); buffer.append(mlogtype.getselecteditemposition() == 0 ? "@" : "x"); buffer.append(mgeocache.getwaypoint()).append(" "); if(mlogedit.gettext().length() > 0) {     buffer.append(mlogedit.gettext().tostring()); }  smsmanager sms = smsmanager.getdefault(); sms.sendtextmessage("41411", null, buffer.tostring(), null, null); 

you want use sms intent.

that give user option select (or skip step if have default option) sms sending utility want's use.

several applications register such, such skype, yahoo hub, google voice, etc.

so using intent, tell android use whatever user wants send text message sms recipient.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -