Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9087566b authored by Joe Malin's avatar Joe Malin Committed by Android Git Automerger
Browse files

am 7777fb04: Merge "DOC CHANGE: Fix bug 3416872 in MonkeyRunner doc" into honeycomb

* commit '7777fb04':
  DOC CHANGE: Fix bug 3416872 in MonkeyRunner doc
parents 91c1b185 7777fb04
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -117,7 +117,7 @@ device.startActivity(component='com.example.android.myapplication.MainActivity')
device.press('KEYCODE_MENU','DOWN_AND_UP')
device.press('KEYCODE_MENU','DOWN_AND_UP')


# Takes a screenshot
# Takes a screenshot
result = device.takeSnapShot
result = device.takeSnapShot()


# Writes the screenshot to a file
# Writes the screenshot to a file
result.writeToFile('myproject/shot1.png','png')
result.writeToFile('myproject/shot1.png','png')