How to Enable or Disable Network Usage in WizarviewAgent: Difference between revisions
(Created page with "Sometime 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.inten...") |
No edit summary |
||
Line 1: | Line 1: | ||
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 | Send broadcast, action:android.intent.action.NET_USE_CONTROL extra value name: net_use_control_flag, value is enable, disable |
Revision as of 02:30, 4 March 2022
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);