I see this error on the command window where emulator (port 5556) is
launched:

emulator: could not bind server socket address 127.0.0.1:5555: Address
already in use
2009-04-22 15:25:04.427 emulator[32237:10b] Warning once: This
application, or a library it uses, is using NSQuickDrawView, which has
been deprecated. Apps should cease use of QuickDraw and move to
Quartz.
emulator: could not connect client socket to :::::::00001:5554:
Invalid argument

The Invalid argument error seem to have caused sms not being received.
Maybe it all have to do with address already in use error?
Is there something I need to do to launch the emulator differently
(like a workaround maybe)?

On Apr 22, 3:47 pm, zlu <[email protected]> wrote:
> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to