title: False positives: junit.framework.AssertionFailedError: EditText is not found
body: <p>I have a problem setting up Robotium tests to run on Travis without random false posivities.</p>
  
  <p>Every couple of builds I get</p>
  
  <pre><code>pl.mg6.agrtt.TestActivityTests &gt; testCanEnterTextAndPressButton[test(AVD) - 4.4.2] FAILED
      junit.framework.AssertionFailedError: EditText is not found!
      at com.robotium.solo.Waiter.waitForAndGetView(Waiter.java:540)
  </code></pre>
  
  <p>on all my tests.</p>
  
  <p>I have created <a href="https://github.com/mg6maciej/android-gradle-robotium-travis-test" rel="nofollow">a simple project on GitHub</a> to show the issue.<br>
  You may see how it builds <a href="https://travis-ci.org/mg6maciej/android-gradle-robotium-travis-test/builds" rel="nofollow">on Travis</a>. Note build #7 failed after modyfing unrelated file.</p>
  
  <p>I'm suspecting this to be caused by emulator being locked or its sceeen dimmed. I could reproduce this issue on local machine by turning connected device's screen off and then running</p>
  
  <pre><code>./gradlew connectedAndroidTest
  </code></pre>
  
  <hr>
  
  <p>After modyfing tests I got a different error message, which is somewhat more informative, so I'm adding it just in case someone tries to find a solution:</p>
  
  <pre><code>pl.mg6.agrtt.TestActivityTests &gt; testCanFindViewsEnterTextAndPressButton[test(AVD) - 4.4.2] FAILED
      junit.framework.AssertionFailedError: Click at (160.0, 264.0) can not be completed! (java.lang.SecurityException: Injecting to another application requires INJECT_EVENTS permission)
      at com.robotium.solo.Clicker.clickOnScreen(Clicker.java:106)
  </code></pre>