code: public boolean waitForActivity(Class<? extends Activity> activityClass, int timeout)
  	{
  		if(config.commandLogging){
  			Log.d(config.commandLoggingTag, "waitForActivity("+activityClass+", "+timeout+")");
  		}
  		
  		return waiter.waitForActivity(activityClass, timeout);
  	}
docs: Waits for an Activity matching the specified class.
  
  @param activityClass the class of the {@code Activity} to wait for. Example is: {@code MyActivity.class}
  @param timeout the amount of time in milliseconds to wait
  @return {@code true} if {@link Activity} appears before the timeout and {@code false} if it does not