I am attempting to check whether there is a network connection. I couldn't find any sample code, whether because it isn't there or because my google-fu is weak, so I came up with the following:
The second line causes an immediate force close upon running the application.
I am rather new to Eclipse, and debuggers in general, but I didn't see anything that looked relevant when I stepped through it.
Do any answers jump out at anyone? Or does anyone have a suggestion for an alternate method to achieve the same goal?