Use a broadcast receiver (static one) to listen for OS wi-fi events.
When the event occurs, your process is created and the service run. Is this what are you looking for?
May you help me more please ?
i am not familiar with android dev site and i dont know how to make a static broadcast receiver
can you give me a small example please ?
First step should be a quick reading from the forum: intent filters tutorial.
Secondly, use reference to this broadcast intent.
Try yourself to modify code from the tutorial with intent above then come back to this thread for further assistance. I hope this way to be of more help to you than just putting together some code for a blinded copy&paste.
First step should be a quick reading from the forum: intent filters tutorial.
Secondly, use reference to this broadcast intent.
Try yourself to modify code from the tutorial with intent above then come back to this thread for further assistance. I hope this way to be of more help to you than just putting together some code for a blinded copy&paste.