ConnectivityManager cm = (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo activeNetwork = cm.getActiveNetworkInfo();
result in logs
android.net.conn.CONNECTIVITY_CHANGE
getConnectivityStatusString=TYPE_ETHERNET
activeNetwork.getTypeName()=ETHERNET
activeNetwork.isConnected()=true
activeNetwork.isConnectedOrConnecting()=true
activeNetwork.isAvailable()=true
activeNetwork.getState()=CONNECTED
i am working with android printer and i am checking the Ethernet connection status. i get always same ablove results. when cable plugin and pulled out. Any idea on how to track it