Android – Uiautomatorviewer – How to view uiautomator dump view.xml file using Uiautomatorviewer?


I am planning to capture the uiautomator dump view.xml files and try to view using Uiautomatorviewer.

adb shell uiautomator dump view.xml

Is there a way to capture the uiautomatorsnapshots from command line while tests are running and able to view these files using Uiautomatorviewer?


  • adb pull /sdcard/view.xml ./view.uix
  • Import it using Open > UI xml dump
  • Take a screenshot: adb exec-out screencap -p > screen.png
  • Import it using Open > Screenshot

Answered By – Amin Guermazi

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published