docs: public boolean waitForActivity(String name, int timeout){
  		if(isActivityMatching(activityUtils.getCurrentActivity(false, false), name)){
  			return true;
  		}
  		
  		boolean foundActivity = false;
  		ActivityMonitor activityMonitor = getActivityMonitor();
  		long currentTime = SystemClock.uptimeMillis();
  		final long endTime = currentTime + timeout;
  
  		while(currentTime < endTime){
  			Activity currentActivity = activityMonitor.waitForActivityWithTimeout(endTime - currentTime);
  			
  			if(isActivityMatching(currentActivity, name)){
  				foundActivity = true;
  				break;
  			}	
  			currentTime = SystemClock.uptimeMillis();
  		}
  		removeMonitor(activityMonitor);
  		return foundActivity;
  	}