Skip to content

Instantly share code, notes, and snippets.

@modalsoul
Created May 20, 2012 14:26
Show Gist options
  • Select an option

  • Save modalsoul/2758303 to your computer and use it in GitHub Desktop.

Select an option

Save modalsoul/2758303 to your computer and use it in GitHub Desktop.
Android UI test sample get current activity
// Wait for it to start...
Activity mCurrentActivity = getInstrumentation().waitForMonitorWithTimeout(monitor, 5);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment