Code example for Instrumentation

Methods: addMonitor

0
	 */ 
	private void setupActivityMonitor() { 
 
		try { 
			IntentFilter filter = null;
			activityMonitor = inst.addMonitor(filter, null, false);
		} catch (Exception e) {
			e.printStackTrace();
		} 
	} 
 
	/** 
	 * Sets the Orientation (Landscape/Portrait) for the current activity. 
	 *  
	 * @param orientation 
	 *            An orientation constant such as 
	 *            {@link android.content.pm.ActivityInfo#SCREEN_ORIENTATION_LANDSCAPE} 
	 *            or 
	 *            {@link android.content.pm.ActivityInfo#SCREEN_ORIENTATION_PORTRAIT} 
	 *            . 
	 *