title: How can i get active ios device or simulator UDID?
body: <p>I can get all available devices by "instruments -s device"</p>
  
  <p>I am not able to identify which one is active device. How can i identify active device or simulator programmatically in JAVA.</p>
  
  <p>Please help me.</p>
  
  <p>Thanks.</p>