Android WIFI How To Detect When Specific WIFI Connection is Available

后端 未结 4 1820
迷失自我
迷失自我 2020-11-28 05:31

I need to detect when I have network connectivity to a SPECIFIC WIFI network.

For example: As soon as you walk into your house, and your phone picks up your home Wi

4条回答
  •  情话喂你
    2020-11-28 06:21

    As long, as we are nothing like code as you need, for free service, I can only recommend you, to read everything possible about Android and its Network/Wifi possibilities, when creating such app.

    • Sources you should read up and study

    http://developer.android.com/reference/android/net/wifi/package-summary.html
    how to see if wifi is connected in android
    How to get my wifi hotspot ssid in my current android system
    How to get name of wifi-network out of android using android API?
    Get Wifi Interface name on Android

    • Permissions you should ask for when creating application manifest

    AndroidManifest.xml

    
    
    
    
    
    
    
    

    (the last one, only if you want it to detect your location, to prevent unnecessary calls)

    • You should also declare, that your application needs wifi to be available in device, to work properly:

    AndroidManifest.xml

    
    

提交回复
热议问题