See http://code.google.com/p/android/issues/detail?id=2660.

On Apr 23, 7:50 am, z <[email protected]> wrote:
> I see this error on the command window whereemulator(port 5556) is
> launched:
>
> emulator:couldnotbind serversocketaddress 127.0.0.1:5555: Address
> already in use
> 2009-04-22 15:25:04.427emulator[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:couldnotconnectclientsocketto 
> :::::::00001:5554:Invalidargument
>
> TheInvalidargumenterror seem to have caused smsnotbeing received.
> Maybe it all have to do with address already in use error?
> Is there something I need to do to launch theemulatordifferently
> (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 upemulatoron port 5554,
> > start anotheremulatorin commandline against another avd (this starts
> > theemulatoron 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