05-02-2010 12:31 AM
Well, I know its an old thread, but just for someone's info.
To detect Wi-fi or any connection, simplest thing can be done is to try opening a Connection with a particular network.
If your connection is successful, then you do have that connection !
otherwise, an Exception will be thrown !