List of usage examples for android.test ActivityInstrumentationTestCase2 setActivityInitialTouchMode
public void setActivityInitialTouchMode(boolean initialTouchMode)
From source file:sysnetlab.android.sdc.test.TestHelper.java
public static Activity launchSensorDataCollectorActivity(ActivityInstrumentationTestCase2<?> testCase) { Activity activity;//from ww w .j a v a 2s . com testCase.setActivityInitialTouchMode(true); activity = testCase.getActivity(); testCase.getInstrumentation().waitForIdleSync(); Assert.assertTrue("The activity must be a SensorDataCollectorActivity.", activity instanceof SensorDataCollectorActivity); return activity; }