Android Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsMobile ProgrammingAndroid Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 22nd, 2012, 07:35 PM
pipsqueaker117 pipsqueaker117 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2012
Posts: 7 pipsqueaker117 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 52 m 7 sec
Reputation Power: 0
A question to the devs

So, I'm in the process of designing an android app, and as I'm not adept at finding things i the API yet, I have a question to ask o all you android devs out there.
Is there a line of code that will send a text to a phone number from the phone's default texting service? Is it possible?

This is what i mean. Say I have a Motorola droid on Verizon with a texting plan, and (in the program) a string. and I click a button in my program that says 'text'. Is there any way to get the device to text the String using Verizon's data plans? Like, a legal, normal text, just sent from an external program. Can anyone tell me that?

Thank you, and sorry for my verbosity.

Reply With Quote
  #2  
Old March 4th, 2012, 12:32 PM
rektiphyr rektiphyr is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2012
Posts: 8 rektiphyr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 25 m 26 sec
Reputation Power: 0
Quote:
Originally Posted by pipsqueaker117
So, I'm in the process of designing an android app, and as I'm not adept at finding things i the API yet, I have a question to ask o all you android devs out there.
Is there a line of code that will send a text to a phone number from the phone's default texting service? Is it possible?

This is what i mean. Say I have a Motorola droid on Verizon with a texting plan, and (in the program) a string. and I click a button in my program that says 'text'. Is there any way to get the device to text the String using Verizon's data plans? Like, a legal, normal text, just sent from an external program. Can anyone tell me that?

Thank you, and sorry for my verbosity.


I've personally never done this before, but a quick google turned up a class called SmsManager.

Probably a good place to start:
http://developer.android.com/reference/android/telephony/SmsManager.html#sendTextMessage(java.lang.String,%20java.lang.String,%20java.lang.String,%20android. app.PendingIntent,%20android.app.PendingIntent)

Edit: just found a great example: http://mobiforge.com/developing/story/sms-messaging-android?dm_switcher=true

Reply With Quote
Reply

Viewing: Dev Shed ForumsMobile ProgrammingAndroid Development > A question to the devs

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap