|
|
@ -1494,18 +1494,20 @@ public class MicroPhotoService extends Service {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Intent intent = new Intent();
|
|
|
|
if (!TextUtils.equals("0.0.0.0", ip)) {
|
|
|
|
intent.putExtra("cmd", "setnet");
|
|
|
|
Intent intent = new Intent();
|
|
|
|
intent.putExtra("staticip", true);
|
|
|
|
intent.putExtra("cmd", "setnet");
|
|
|
|
intent.putExtra("iface", iface);
|
|
|
|
intent.putExtra("staticip", true);
|
|
|
|
intent.putExtra("ip", ip);
|
|
|
|
intent.putExtra("iface", iface);
|
|
|
|
intent.putExtra("netmask", netmask);
|
|
|
|
intent.putExtra("ip", ip);
|
|
|
|
if (!TextUtils.isEmpty(gateway)) {
|
|
|
|
intent.putExtra("netmask", netmask);
|
|
|
|
intent.putExtra("gateway", gateway);
|
|
|
|
if (!TextUtils.isEmpty(gateway)) {
|
|
|
|
|
|
|
|
intent.putExtra("gateway", gateway);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// intent.putExtra("dns1", "8.8.8.8");
|
|
|
|
|
|
|
|
// intent.putExtra("dns2", "192.168.19.1");
|
|
|
|
|
|
|
|
sendBroadcast(getApplicationContext(), intent);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// intent.putExtra("dns1", "8.8.8.8");
|
|
|
|
|
|
|
|
// intent.putExtra("dns2", "192.168.19.1");
|
|
|
|
|
|
|
|
sendBroadcast(getApplicationContext(), intent);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static void sendBroadcast(Context context, Intent intent)
|
|
|
|
public static void sendBroadcast(Context context, Intent intent)
|
|
|
|