0

I am working on an android application and I want to send an SMS to the phone number of the phone i.e the emulator. I know there will be no real phone number for emulator, but how can I send an SMS from the phone?

idbrii
  • 10,975
  • 5
  • 66
  • 107
James
  • 13,891
  • 26
  • 68
  • 93

1 Answers1

3

Open Eclipse. Select "Emulator Control" from Window -->Show View -->Android.There will be an option called Telephony Actions. There under the Incoming number just specify a sample number.Select SMS and type the text that you want and finally click "Send"

You can try this sample app too

http://samplecodeviewer.googlecode.com/svn-history/r2/trunk/SampleCodeViewer/SMSTest.zip

and check for SMSSender.java class.

DeRagan
  • 22,827
  • 6
  • 41
  • 50