Code example for UnknownHostException

Methods: toString

0
            } catch (SocketException e) {
                publishProgress(0); 
                Log.e(TAG, "Socket exeption\n" + e.toString());
            } catch (UnknownHostException e) {
                publishProgress(1); 
                Log.e(TAG, "Unknown Host\n" + e.toString());
            } catch (IOException e) {
                publishProgress(1); 
                Log.e(TAG, "IO Exception\n" + e.toString());
            } 
            return null; 
        } 
 
        /** 
         * Update the UI on the status of the connection 
         *  
         * @param progress 
         */ 
        @SuppressWarnings("unused") 
        protected void onProgressUpdate(Integer progress) {
            Log.i(TAG, "Progress");