I am on my second day so I claim newbie newbie status!

Starting from the "Hello World" application I have been experimenting
using Eclipse Galileo under Windows XP  and ADT
0.9.5.v200911191123-20404


In my code I have inserted

ConnectivityManager netservice = (ConnectivityManager)
getSystemService(CONNECTIVITY_SERVICE);

which seems (sic) to work OK and debug shows something plausible for
the value of netservice.

If I then attempt to execute

NetworkInfo netlist = netservice.getActiveNetworkInfo();

I get a runtime exception and what I take to be a call stack the most
recent line of which reads:

 ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord)
line: 2268

Eclipse opens a tab (with the line above as the title) in a debug pane
next to my source code, informs me in that tab "Source not found." and
provides a button labeled "Edit Source Lookup Path...". When I click
on that button and then "Add..."I am offered seven roots of places
where whatever source is being search for might be found. I don't
quite know what I should be looking for.  I have of course included
"import android.net.ConnectivityManager" in my code.

Any help appreciated....
Bernard Higonnet

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to