Search code examples
androidandroid-wifi

how to check wifi connection throught the entire application?


how to check wifi connection throught the entire application.is there any events or class that we can get message for that? thankx


Solution

  • See this question for details of how to check wifi status.

    Do be aware that even if the wifi is switched on, and connected to a wifi network, that doesn't guarantee data can be transmitted and received - the signal may be too weak for example at the moment you try to use it. So don't assume connections will definitely work because the wifi is connected.