Originariamente inviato da smok3
purtroppo non riesco ad intercettare l'eccezione
codice:
public static boolean reteConnessa () {
    try {
        Socket s = new Socket ("www.google.it", 80);
        return s.isConnected ();
    } catch (Exception e) {
        return false;
    }
}