Code example for Instrumentation

Methods: callActivityOnResume

0
	/** 
	 * test activity state transfer 
	 */ 
	public void testStateResume(){ 
		Log.i(TAG, "testPreConditions()");
		mInstr.callActivityOnResume(mActivity);
		assertTrue(true);
	} 
	 
	/** 
	 * test whether wifi can be enable/disable from this page 
	 * @throws Throwable 
	 */ 
	public void testWifiEnabler() throws Throwable{ 
		Log.i(TAG, "testWifiEnabler");
		//CheckBoxPreference wifiEnabler = (CheckBoxPreference)mActivity.findPreference(KEY_TOGGLE_WIFI); 
		boolean wifiFormerEnableStatus = mWifiManager.isWifiEnabled();
         
		performClickOnCheckBox(KEY_TOGGLE_WIFI);
        boolean wifiNowEnableStatus = mWifiManager.isWifiEnabled();