Android code sample: Networking
Example to scan connected devices within the same WiFi network, using InetAddress.isReachable(). package com.blogspot.android_er.androidwireless; import android.content.Context; import android.net.wifi.WifiManager; import android.os.AsyncTask; import …
Android example code to get ssid and IP address, using WifiInfo. Tested on Samsung Galaxy A9, running Android 6.0.1. Wifi enabled and connected Wifi disabled MainActivity.java package com.blogspot.android_er.androidwireless; import android.content.Con…