Code example for Instrumentation

Methods: removeMonitor

0
	@Override 
	protected void tearDown() throws Exception { 
		if (!m_DontFinishActivities)
			m_Solo.finishOpenedActivities();
		 
		m_Instrumentation.removeMonitor(m_ActivityMonitor);
		m_ActivityMonitor = null;
		 
		super.tearDown(); 
	} 
	 
	// Accessors 
	 
	protected void setFinishActivitiesWhenDone(boolean finish) {
		m_DontFinishActivities = finish;
	} 
	 
	// Helpers 
	 
	protected Activity getCurrentActivity() {
		return m_ActivityMonitor.getLastResumedActivity();