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();
		} 
	} 
 
	/** 
	 * This is were the activityStack listener is set up. The listener will keep track of the 
	 * opened activities and their positions. 
	 */ 
 
	private void setupActivityStackListener() { 
		TimerTask activitySyncTimerTask = new TimerTask() {
			@Override 
			public void run() { 
				if (activityMonitor != null){