How to Enable or Disable Network Usage in WizarviewAgent
Some of the customer want to enable/disable wizarview agent network using. Wizarview agent version should be greator than 5.3.39.
Send broadcast, action:android.intent.action.NET_USE_CONTROL extra value name: net_use_control_flag, value is enable, disable
- Enable
Intent enableIntent = new Intent();
enableIntent.putExtra("net_use_control_flag", "enable");
enableIntent.setAction("android.intent.action.NET_USE_CONTROL");
getApplicationContext().sendBroadcast(enableIntent);
- Disable
Intent disableIntent = new Intent();
disableIntent.putExtra("net_use_control_flag", "disable");
disableIntent.setAction("android.intent.action.NET_USE_CONTROL");
getApplicationContext().sendBroadcast(disableIntent);