import android
droid = android.Android()
number = droid.dialogGetInput('Send SMS', 'Phone Number?').result
message = 'Test SMS'
result = droid.smsSend(number, message)
Code Explained
number = droid.dialogGetInput('Send SMS', 'Phone Number?').result
Get the phone number you want to send the SMS to. When you start 2 instances of the emulator, you can send SMS from one to the other using the port number as the phone number.
result = droid.smsSend(number, message)
Send the SMS
Receive SMS
sms_read.py
import android
droid = android.Android()
SMSmsgs = droid.smsGetMessages(False, 'inbox').result
for message in SMSmsgs:
print 'From: '+message['address']+' > '+message['body']+'\n'