Skip to content

Instantly share code, notes, and snippets.

@modalsoul
Created May 20, 2012 14:45
Show Gist options
  • Save modalsoul/2758348 to your computer and use it in GitHub Desktop.
Save modalsoul/2758348 to your computer and use it in GitHub Desktop.
Android UI test sample get current activity
// Wait for transited page to start...
mCurrentActivity = getInstrumentation().waitForMonitorWithTimeout(monitor, 5);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment