I am writing automated test cases using Instrumentation. "waitforMonitorWithTimeout" always timesout. If I use waitForMonitor everything is fine. The two lines of code are below. (I comment out one of them when building my test project).
Activity currentActivity = instrumentation.waitForMonitorWithTimeout(monitor, (long)30);
Activity currentActivity = instrumentation.waitForMonitor(monitor);
Are there known issues with "waitforMonitorWithTimeout"? I have to use the timeout to determine if an event occured (and thus transition to a new activity) or not.