Android APIs
public final class

AppNotIdleException

extends RuntimeException
implements EspressoException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ android.support.test.espresso.AppNotIdleException

Class Overview

An exception which indicates that the App has not become idle even after the specified duration.

Summary

Public Methods
static AppNotIdleException create(List<String> idleConditions, int loopCount, int seconds)
Creates a new AppNotIdleException suitable for erroring out a test case.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Methods

public static AppNotIdleException create (List<String> idleConditions, int loopCount, int seconds)

Creates a new AppNotIdleException suitable for erroring out a test case. This should be called only from the main thread if the app does not idle out within the specified duration.

Parameters
idleConditions list of idleConditions that failed to become idle.
loopCount number of times it was tried to check if they became idle.
seconds number of seconds that was tried before giving up.
Returns
  • a AppNotIdleException suitable to be thrown on the instrumentation thread.