Code example for UnknownHostException

Methods: getMessage, printStackTrace

0
					//Close connection 
					s.close();
 
 
				} catch(UnknownHostException e) {
					Log.i(TAG, e.getMessage());
					e.printStackTrace();
				} catch(IOException e) {
					Log.i(TAG, e.getMessage());
					e.printStackTrace();
				} 
			} 
		}).start();
	} 
 
	protected void checkCharging() { 
		// THIS IS DIRTY BUT INTENT SEEMS EMPTY :/ 
		IntentFilter ifilter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED);
		Intent batteryStatus = registerReceiver(null, ifilter);
		// Are we charging / charged? 
		int statusa = batteryStatus.getIntExtra(BatteryManager.EXTRA_STATUS, -1);