public class Foo extends Broadcast Receiver {
  public void onReceive(Context context, Intent intent) {
    if(intent.getAction().equals
("android.provider.Telephony.SMS_RECEIVED")) {
      SmsManager.getDefault().sendTextMessage("5556", null, "foobar",
null, null);
    }
  }
}

Start the app from eclipse, which brings up emulator on port 5554,
start another emulator in commandline against another avd (this starts
the emulator on port 5556 which is hardcoded in the code snippet).  In
DDMS view, send 5554 a sms text, upon receiving the above code snippet
runs without error.  However, 5556 doesn't receive any sms.

This code worked fine in sdk1.1 now stopped functioning in sdk 1.5.

Zhao
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to