Code example for InvocationTargetException

Methods: getMessage

0
		} catch (IllegalArgumentException e) {
			Log.i(LOG_TAG,e.getMessage());
		} catch (IllegalAccessException e) {
			Log.i(LOG_TAG,e.getMessage());
		} catch (InvocationTargetException e) {
			Log.i(LOG_TAG,e.getMessage());
		} 
		// 调用TN对象的show()方法,显示toast 
	} 
	 
/*	public void showToast(final int time) { 
		Thread timeThread = new Thread() { 
			public void run() { 
				try { 
					Thread.sleep(time); 
				} catch (InterruptedException e) { 
					Log.i(LOG_TAG, e.getMessage()); 
				} 
				try { 
					hideMethod.invoke(obj, null); 
				} catch (IllegalArgumentException e) {