Send SMS from one emulator instance to another

by Devesh » Sat, 30 Aug 2008 02:25:05 GMT

Sponsored Links
I have read many posts on the Android developers forum, however, I am
not able to resolve the problem.

I am trying to send SMS text message from one emulator instance to
another emulator instance on the same machine, but the second emulator
instance does not display the text message. If however, I use the
telnet window and send sms from there, the second emulator instance
displays the text message.
In the first emulator instance, I am using this code:-

SmsManager sm = SmsManager.getDefault();
sm.sendTextMessage("5555", null, "Hello world", null, null, null);

where the first parameter is the sendTo address, which is actually the
port# on which the second emulator is running.
I have used several options on this parameter value, such as the
device name "emulator-tcp-5555" and even the telnet port#  "5554".
However, the second emulator instance just does not display the text
message sent from the first emulator instance.

Following is the manifest of the sms sender activity:-
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="" ;
    <uses-permission android:name="android.permission.SEND_SMS" />
    <uses-permission android:name="android.permission.WRITE_SMS" />
    <application android:icon="@drawable/icon">
        <activity android:name=".SMSSenderActivity"
                <action android:name="android.intent.action.MAIN" />
android:name="android.intent.category.LAUNCHER" />



Send SMS from one emulator instance to another

by Megha Joshi » Sat, 30 Aug 2008 02:39:04 GMT

 Please reference the SMSTest sample app uploaded in the Files section. It
shows how to send SMS between two emulators using SMSManager APIs:

Sponsored Links

Other Threads

1. On FC, where does the problem report go?

On a force close where does the problem report go? The user has the ability
to state what they were doing at the time as well. Does the developer have
access to these problem reports for their programs?



2. Gestures

Hi Guys

Need some help here.

Can gestures be used to take in a user drawing and assess that

For instance: A user draws the number 1, can gestureDetection assess
this number on its own, or will I have to create every variation of
the number 1, using GestureBuilder?

Could Canvas be used to do this instead?



3. Samsung Galaxy Tab

4. How do I do monkey test for 24 hours?

5. Adding songs to MediaStore

6. Interaction with other apps

7. NetMeter update request