tags:

views:

92

answers:

2

Hai I am working on an android application and i want the phone number of the phone i.e the emulator.I know there will be no phone number for emulator.I want to know how to get its phone number. The reason is I want to send sms from the phone. Please Help. Thankyou.

A: 

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.

Rahul
A: 

See this answer

bassfriend