I have found this link:
Wifi dis/connect
Could someone please explain how I would use this?
Is this a service that gets installed by itself then add the following to my Manifest in my main app?:
AddReceiverText(SendNotification,
<intent-filter>
<action android:name="android.net.wifi.STATE_CHANGE"/>
</intent-filter>)
How is the service started? etc?
Is there an example?
I have a tablet that will have a static ip address. I have multiple target devices that receive a UDP broadcast message, they decipher that message and checks it the message belongs to them, if so sends a response message back to the tablet ip address. All items (the tablet and the target items) will be connected to an access point. I need the tablet app to be able to tell the if connection is dropped from the tablet to the access point and even check if wifi is even turned on. Is the wifi dis/connect code what I should be using?