Needs help on debug

by Freeman Zhang » Mon, 19 Oct 2009 21:50:18 GMT


Sponsored Links
 HI

I'm a beginner on Android develop.
When I write my first "hello world", start to run the app, eclipse report
"Can't bind to local 8600 for debugger"
and the emulator shows an error window, "Waiting For Debugger", "Waiting for
the debugger to attach".

How to resolve it?

Thank you very much.

Regards,
Freeman

--~--~---------~--~----~------------~-------~--~----~



Needs help on debug

by Freeman Zhang » Tue, 20 Oct 2009 13:39:56 GMT


 Hello, can anybody help me?

2009/10/19 Freeman Zhang <pcman.zh...@gmail.com>


--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


Needs help on debug

by RichardC » Tue, 20 Oct 2009 16:38:13 GMT


 With the emulator running (start it manually if you have to), what
does

adb devices

show?

--
RichardC



--~--~---------~--~----~------------~-------~--~----~



Needs help on debug

by Freeman Zhang » Tue, 20 Oct 2009 21:25:37 GMT


 HI
Thanks for reply.

Cmd line:
------------------------------------------------------------------------------
C:\Users\Freeman>adb devices
List of devices attached
emulator-5554   device
-------------------------------------------------------------------------------

Eclipse:
[2009-10-20 21:20:56 - ddms]Failed to reopen debug port for Selected Client
to: 8700
[2009-10-20 21:20:56 - ddms]Address family not supported by protocol family:
bind
java.net.SocketException: Address family not supported by protocol family:
bind
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at com.android.ddmlib.MonitorThread.reopenDebugSelectedPort(Unknown Source)
at com.android.ddmlib.MonitorThread.run(Unknown Source)

[2009-10-20 21:22:18 - ddms]Can't bind to local 8600 for debugger
[2009-10-20 21:22:24 - ddms]Can't bind to local 8601 for debugger
[2009-10-20 21:22:24 - ddms]Can't bind to local 8602 for debugger
[2009-10-20 21:22:28 - ddms]Can't bind to local 8603 for debugger
[2009-10-20 21:22:32 - ddms]Can't bind to local 8605 for debugger
[2009-10-20 21:22:35 - ddms]Can't bind to local 8606 for debugger
[2009-10-20 21:22:37 - ddms]Can't bind to local 8607 for debugger

Freeman.



2009/10/20 RichardC <richard.crit...@googlemail.com>



--~--~---------~--~----~------------~-------~--~----~



Needs help on debug

by RichardC » Tue, 20 Oct 2009 21:46:48 GMT


 Putting "android Address family not supported by protocol" into Google
turned up a few entries suggesting the problem may be with the
contents of your hosts file.

Can you list the contents of your hosts file. You will find it in the
folder:

C:\WINDOWS\system32\drivers\etc


Lines that start with a # are comments.  My file only has the line:

127.0.0.1       localhost


See also:



Needs help on debug

by Freeman Zhang » Tue, 20 Oct 2009 21:55:48 GMT


 h~~~ I Cmy hosts file just contains a IPv6 loop back address.
Thank you very much.

2009/10/20 RichardC <richard.crit...@googlemail.com>


--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. How to make a widget that doesn't drain the battery and updates often

> Frankly, I don't know why the Genie... service sticks around for the

Neither do I, but it seems "everyone" is taking this approach. I
really really miss guidelines on Android development. Both GUI design
guidelines (toolbars at the bottom anyone?) and design guidelines for
widgets doing more advanced things than updating a clock. It must be
100 different toolbars out there at the moment in various sizes. Why
can't we have a proper toolbar in Android? Sorry, off-topic :-)


I would love to see some better suggestions :-)

No wake-locks. Only using the following code to make the widget change
headline:
...
am.set(AlarmManager.RTC,  System.currentTimeMillis() + 5000,
pendingIntent);
...

According to the documentation this should work just brilliant. But my
phone is dead every morning with my widget running. Uninstalled!


Well, people will blame my widget even if I try to tell them that they
have another application that has wake_locks so I must make my widget
behave nicely with the rest of the apps out there.

Well I have made a new service that runs all the time and receives
broadcast events for screen off and on and that works great, so maybe
I'll stick with this. When I have started 10 of my favourite apps I
have a lot of services running so I guess people are used to this.
Seems like services is a bit overused these days so no wonder everyone
complains about battery life with Android...

-Christer


-- 

2. auto shutdown & reboot

dear rr, apa ada apk yg bs mensett hh android shg bs auto shutdown pd wkt
trtntu & online kmbali pd wkt trtentu jg? let say jam 11 mlm mati & jam 6 pg
nyala kmbali?

SenT From MY GreenY

-- 
"Indonesian Android Community [id-android]" 

3. Non Standard Preview Format on Samsung SPH M900

4. OOT : C3

5. HTC Incredible suffering a reset while service running.

6. How to make a widget that doesn't drain the battery and updates often

7. Webview duplicate HTML problem