mardi 8 mars 2016

How to retrieve IP Assignment, IP Address and SubnetMask of Wi-Fi for Android 2.x and above?

Answers Here elaborate well on how to configure Wi-Fi for different Android OS versions. In my application, I have used available solutions to configure Static & DHCP connection for android devices 2.x and above. Now, I want to retrieve IPAssignment, SubnetMask and IPAddress from Connected Network Configuration and sync it with server.

I am having trouble retrieving the said parameters for different OS versions. Also I need to get values for both DHCP and STATIC configuration. I have tried reflection the way it is applied Here by changing putString to getString and by using getter on other enumeration fields but it didn't help me. Can anyone please help me with this ?





Aucun commentaire:

Enregistrer un commentaire