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?
Asked
Active
Viewed 1,260 times
0
-
Check this [Sms Messaging in Android](http://mobiforge.com/developing/story/sms-messaging-android) – zapotec Jan 23 '12 at 12:14
-
See this [answer](http://stackoverflow.com/questions/2480288/get-phone-number-in-android-sdk) – ba__friend Aug 12 '10 at 12:42
1 Answers
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