byte[] bytes = BigInteger.valueOf(Wifi.getDhcpInfo().gateway).toByteArray(); InetAddress address = null;
Gives out only: /1.1.168.192, and I want 192.168.1.1. How to do it?
String gateway = String.valueOf(Wifi.getDhcpInfo().gateway);
Source: https://ru.stackoverflow.com/questions/431045/More articles:Tab sharing with LocalStorageTotal.js async queriesAndroid - use Plurals for seconds, minutes, hours, daysError starting vagrantBlock every second clickHow to stop the translation of the application on AndroidHow to wait for the completion of several consecutive promises?Squeeze Android ImageDisplay all photos with instagram in GridLayoutCreating Centos KVM BridgeAll Articles
String gateway = String.valueOf(Wifi.getDhcpInfo().gateway);
not suitable? - Rishka