How to inspect android app and get id of elements with uiautomatorviewer

Android sdk comes with few very useful tools. One of them is uiautomatorviewer that can be used to inspect your android app and to find properties of the app elements like id,text,etc

The android uiautomatorviewer is located at

$> $ANDROID_HOME/tools/bin/uiautomatorviewer

Screenshot from 2018-04-24 22:58:52

How to use uiautomatorviewer:

  • Open the app in your mobile device
  • Open uiautomatorviewer in your terminal with the above command
  • Click on the device screenshot button
  • You should now be able to see your mobile screen and app in uiautomatorviewer, and all the android elements on the right side window

Screenshot from 2018-04-24 22:54:05

 

I am a greenhorn Data Science student with interest in finding patterns in data. My language of choice is Python and I am starting to get my hands dirty with R.

Checkout my portfolio here: https://confusedcoders.com/nikita-sharma-greenhorn-data-science-student

I blog on Medium.com [1] and ConfusedCoders.com [2]. I share my code on Github.com [3].

  1.  https://medium.com/@nikkisharma536
  2. https://confusedcoders.com/author/nikita
  3. https://github.com/nikkisharma536

Leave a Reply

Your email address will not be published. Required fields are marked *