Code example for InvocationTargetException

Methods: toString

0
		} catch (IllegalArgumentException e) {
			Log.e(TAG, "getProcessStats IllegalArgumentException : " + e.toString());
		} catch (IllegalAccessException e) {
			Log.e(TAG, "getProcessStats IllegalAccessException : " + e.toString());
		} catch (InvocationTargetException e) {
			Log.e(TAG, "getProcessStats InvocationTargetException : " + e.toString());
		} 
		return null; 
	} 
 
	/** 
	 * 获取某个uid的wakelock信息 Returns a mapping containing wakelock statistics. 
	 *  
	 * @return a Map from Strings to Uid.Wakelock objects. 
	 */ 
	@SuppressWarnings("unchecked") 
	public static Map<String, Object> getWakelockStats(Object object) {
		Method getWakelockStatsMethod = null;
 
		try { 
Stop searching for code, let great code find you!  Add Codota to your java IDE