Can we use API for testing inside Android Activities or classes?
<p>Can we use android test API (like simulating touch events) from frameworks like UIAutomator or Espresso inside our android code in Activities. I'm new to android, please clarify.</p>

<p>Thanks in advance..</p>