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. android-x86

I want customized file.
can anyone please give it to me.


2. Parcelable iterface implementation in parent class

Hi at all,

I have this doubt thinking about the Parcelable interface, question

Let A and B two type of object, with B that extend A, when I implement
the parcelable interface for A all is ok but when I have to implement
the parcelable interface for B can I write in parcel only B object
fields ? can I be sure that the system call the parcelable interface
implementation from object A?

Thanks so much and excuse-me for by english


3. Access to Google Reader API

4. Passing object via intent

5. Can two application's content providers share one authority?

6. Adding separators to a ListView

7. Using <Uses-Library> in android application