How to Enable or Disable Network Usage in WizarviewAgent: Difference between revisions

From wizarPOS
No edit summary
(Replaced content with "{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/tms-wizarview/toggle-network-in-agent}}")
Tag: Replaced
 
(2 intermediate revisions by one other user not shown)
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.
{{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/tms-wizarview/toggle-network-in-agent}}
 
  Send broadcast, action:android.intent.action.NET_USE_CONTROL  extra value name: net_use_control_flag, value is enable, disable
* Enable
<syntaxhighlight lang="java" line='line'>
  Intent enableIntent = new Intent();
  enableIntent.putExtra("net_use_control_flag", "enable");
  enableIntent.setAction("android.intent.action.NET_USE_CONTROL");
  getApplicationContext().sendBroadcast(enableIntent);
</syntaxhighlight >
* Disable
<syntaxhighlight lang="java" line='line'>
  Intent disableIntent = new Intent();
  disableIntent.putExtra("net_use_control_flag", "disable");
  disableIntent.setAction("android.intent.action.NET_USE_CONTROL");
  getApplicationContext().sendBroadcast(disableIntent);
</syntaxhighlight >

Latest revision as of 05:10, 8 April 2024

Please visit new link of same subject:

https://smartpossdk.gitbook.io/cloudpossdk/faq/tms-wizarview/toggle-network-in-agent

We're making a move! Our site's content is migrating to a new URL, to provide you with an enhanced browsing experience. Please update your bookmarks accordingly. Thank you for your continuous support!