Android
The network sensor provides information on the network sensors availability of the device. These include use of airplane mode, Wi-Fi, Bluetooth, GPS, mobile and WIMAX status and internet availability. This sensor can be leveraged to detect the availability of wireless sensors and internet on the device at any time. Moreover, this sensor also provides mobile and Wi-Fi interval traffic, in bytes and packets.
Settings
- Aware_Preferences.STATUS_NETWORK_EVENTS: true or false to activate or deactivate sensor.
- Aware_Preferences.STATUS_NETWORK_TRAFFIC : true or false to activate or deactivate sensor.
- Network.ACTION_AWARE_AIRPLANE_ON: broadcasted when airplane mode is activated.
- Network.ACTION_AWARE_AIRPLANE_OFF: broadcasted when airplane mode is deactivated.
- Network.ACTION_AWARE_WIFI_ON: broadcasted when Wi-Fi is activated.
- Network.ACTION_AWARE_WIFI_OFF: broadcasted when Wi-Fi is deactivated.
- Network.ACTION_AWARE_MOBILE_ON: broadcasted when mobile network is activated.
- Network.ACTION_AWARE_MOBILE_OFF: broadcasted when mobile network is deactivated.
- Network.ACTION_AWARE_WIMAX_ON: broadcasted when WIMAX is activated.
- Network.ACTION_AWARE_WIMAX_OFF: broadcasted when WIMAX is deactivated.
- Network.ACTION_AWARE_BLUETOOTH_ON: broadcasted when Bluetooth is activated.
- Network.ACTION_AWARE_BLUETOOTH_OFF: broadcasted when Bluetooth is deactivated.
- Network.ACTION_AWARE_GPS_ON: broadcasted when GPS is activated.
- Network.ACTION_AWARE_GPS_OFF: broadcasted when GPS is deactivated.
- Network.ACTION_AWARE_INTERNET_AVAILABLE: broadcasted when the device is connected to the internet. One extra is included to provide the active internet access network:
- Network.EXTRA_ACCESS: an integer with one of the following constants: 1=Wi-Fi, 2= Bluetooth, 4= Mobile, 5= WIMAX
- Network.ACTION_AWARE_INTERNET_UNAVAILABLE: broadcasted when the device is not connected to the internet.
- Network.ACTION_AWARE_NETWORK_TRAFFIC: broadcasted when new traffic information is available for both Wi-Fi and mobile data.
Network Data
Contains the networks statuses.
Network_Data.CONTENT_URI
content://com.aware.provider.network/network
Table field | Field type | Description |
---|---|---|
_id | INTEGER | primary key, auto incremented |
timestamp | REAL | unixtime milliseconds since 1970 |
device_id | TEXT | AWARE device UUID |
network_type | INTEGER | the network type, one of the following: -1=AIRPLANE, 1= WIFi, 2=BLUETOOTH, 3=GPS, 4=MOBILE, 5=WIMAX |
network_subtype | TEXT | the text label of the TYPE, one of the following: AIRPLANE, WIFI, BLUETOOTH, GPS, MOBILE, WIMAX |
network_state | INTEGER | the network status (1=ON, 0=OFF) |
Traffic Data
Contains the Wi-Fi and mobile data traffic, in bytes and packets.
Traffic_Data.CONTENT_URI
content://com.aware.provider.traffic/network_traffic
Table field | Field type | Description |
---|---|---|
_id | INTEGER | primary key, auto incremented |
timestamp | REAL | unixtime milliseconds since 1970 |
device_id | TEXT | AWARE device UUID |
network_type | INTEGER | the network type, one of the following: 1=MOBILE, 2= Wi-Fi |
double_received_bytes | REAL | received bytes |
double_sent_bytes | REAL | sent bytes |
double_received_packets | REAL | received packets |
double_sent_packets | REAL | sent packets |
iOS
The network sensor provides information on the network sensors availability of the device. These include use of network type (e.g., Wi-Fi and mobile network) and internet availability.
- Network.ACTION_AWARE_WIFI_ON: broadcasted when Wi-Fi is activated.
- Network.ACTION_AWARE_WIFI_OFF: broadcasted when Wi-Fi is deactivated.
- Network.ACTION_AWARE_MOBILE_ON: broadcasted when mobile network is activated.
- Network.ACTION_AWARE_MOBILE_OFF: broadcasted when mobile network is deactivated.
- Network.ACTION_AWARE_INTERNET_AVAILABLE: broadcasted when the device is connected to the internet. One extra is included to provide the active internet access network:
- Network.ACTION_AWARE_INTERNET_UNAVAILABLE: broadcasted when the device is not connected to the internet.
Network Data
Contains the networks statuses.
Table field | Field type | Description |
---|---|---|
_id | INTEGER | primary key, auto incremented |
timestamp | REAL | unixtime milliseconds since 1970 |
device_id | TEXT | AWARE device UUID |
network_type | INTEGER | the network type, one of the following: 1= WIFi, 4=MOBILE |
network_subtype | TEXT | the text label of the TYPE, one of the following: WIFI, MOBILE |
network_state | INTEGER | the network status (1=ON, 0=OFF) |