public NetworkConfig(String init)input string from config.xml resource. Uses the form:
[Connection name],[ConnectivityManager connection type],
[associated radio-type],[priority],[dependencyMet]
String fragments[] = init.split(",");
name = fragments[0].trim().toLowerCase(Locale.ROOT);
type = Integer.parseInt(fragments[1]);
radio = Integer.parseInt(fragments[2]);
priority = Integer.parseInt(fragments[3]);
restoreTime = Integer.parseInt(fragments[4]);
dependencyMet = Boolean.parseBoolean(fragments[5]);
|