com.robotium.solo
Class SystemUtils

java.lang.Object
  extended by com.robotium.solo.SystemUtils

public class SystemUtils
extends Object

Contains System methods. Examples are: setDeviceLocale(String language, String country), setMobileData(Boolean turnedOn).

Author:
Renas Reda, renas.reda@robotium.com

Constructor Summary
SystemUtils(android.app.Instrumentation instrumentation)
           
 
Method Summary
 void setMobileData(Boolean turnedOn)
          Sets if mobile data should be turned on or off.
 void setWiFiData(Boolean turnedOn)
          Sets if wifi data should be turned on or off.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemUtils

public SystemUtils(android.app.Instrumentation instrumentation)
Method Detail

setMobileData

public void setMobileData(Boolean turnedOn)
Sets if mobile data should be turned on or off. Requires android.permission.CHANGE_NETWORK_STATE in the AndroidManifest.xml of the application under test.

Parameters:
turnedOn - true if mobile data is to be turned on and false if not

setWiFiData

public void setWiFiData(Boolean turnedOn)
Sets if wifi data should be turned on or off. Requires android.permission.CHANGE_WIFI_STATE in the AndroidManifest.xml of the application under test.

Parameters:
turnedOn - true if mobile wifi is to be turned on and false if not


Copyright © 2009–2015. All rights reserved.