title: How to know button on/off clicked or not
body: <p>I am writing automation for android app.</p>
  
  <p>To write an automation code, I am inspecting an app using uiautomatorviewer(android sdk tools)</p>
  
  <p>I want to view the weather in Fahrenheit and Celsius.</p>
  
  <p>There is a button switch weather units.</p>
  
  <p>After switching weather units, how can i know am in Fahrenheit or Celsius</p>
  
  <p>Here are the screen shot attached</p>
  
  <ol>
  <li><p>Weather units <img src="https://i.stack.imgur.com/sd2ia.png" alt="enter image description here"></p></li>
  <li><p>Fahrenheit <img src="https://i.stack.imgur.com/SyqN3.png" alt="enter image description here"></p></li>
  <li><p>Celsius <img src="https://i.stack.imgur.com/mX5EQ.png" alt="enter image description here"></p></li>
  </ol>
  
  <p>FYI I am not a developer to change Mobile App code. I am writing automation test for Mobile App. Is there any way to automate this using <a href="http://appium.io/" rel="nofollow noreferrer">http://appium.io/</a> with java?</p>