Code example for InvocationTargetException

Methods: e, getMessage

0
		} catch (IllegalArgumentException e) {
			Log.e(TAG, e.getMessage(), e);
		} catch (IllegalAccessException e) {
			Log.e(TAG, e.getMessage(), e);
		} catch (InvocationTargetException e) {
			Log.e(TAG, e.getMessage(), e);
		} 
 
	} 
 
	private void restoreWifiState(AndroidNetworkingFacade androidNetworkingFacade) {
		WifiManager manager = (WifiManager) mContext
				.getSystemService(Context.WIFI_SERVICE);
		try { 
			// Disable emergency access point 
			setSoftAPEnabled( 
					androidNetworkingFacade.getWifiSoftAPConfiguration(), false);
//			setSoftAPEnabled(fOriginalApConfiguration, false); // hack 
//			Method mSetWifiApConfiguration = manager.getClass().getMethod( 
//					"setWifiApConfiguration", WifiConfiguration.class); 
//			mSetWifiApConfiguration.invoke(manager, fOriginalApConfiguration);