Network Survey Intent API
The Network Survey Intent API allows external applications to interact with the Network Survey app. By sending Android intents with specific actions and extras, you can control various aspects of Network Survey's functionality, such as:
-
Starting and stopping network surveys
-
Configuring logging options (cellular, Wi-Fi, etc.)
-
Setting up MQTT connections for real-time data streaming
This API is designed to enable integration between your application and Network Survey, enabling 3rd party apps to control the basic functions of Network Survey.
Intent Basic Structure
To use the Network Survey Intent API, you need to create an Intent object with the following action and component:
Intent Extras
The following extras can be set on an Intent to configure Network Survey's behavior:
Extra Name | Type | Description | Example Value |
---|---|---|---|
cdr_file_logging | boolean | If true, call detail record file logging will be enabled | true |
mqtt_config_json | json | A JSON string containing MQTT connection configuration (see details below). | See below |
gnss_file_logging | boolean | If true, gnss file logging will be enabled | true |
bluetooth_file_logging | boolean | If true, bluetooth file logging will be enabled | true |
wifi_file_logging | boolean | If true, wifi file logging will be enabled | true |
cellular_file_logging | boolean | If true, cellular file logging will be enabled | true |
The mqtt_config_json extra has a value that is a JSON string. Following is an example showing all the values that can be set in the JSON object.
The following field names are required (everything else is optional):
-
mqtt_host
-
mqtt_port
-
mqtt_tls
-
mqtt_client
Usage Examples
Following are some examples of using the Intent to control Network Survey.
Start Network Survey with Logging
Start Network Survey with MQTT and Logging
Stop Network Survey