Android Question changing form DHCP to Static IP?

jamesmustain

New Member
Hi all,
I need to put the static ip address on the device (via code). I get a db with a table with the ip address, using a query I would take the value and assign it to the device.
So Is it possible to change the "configuration mode" from DHCP to static and enter the IP?
Any help? Thanks!
 

hatzisn

Expert
Licensed User
Longtime User
As far as I know the only way is to do it manually in wifi section of the settings by selecting the "more" when you have clicked on your Wifi.
I have found this though in stackoverflow which defies my beliefs:

 
Upvote 0
Top