Set Android IP,DNS,GATEWAY setting programmatically

后端 未结 4 2184

How do I set wifi ip address, dns address, gateway from android java i.e programmatically, I didn\'t find any method which has the capability to store the values.

4条回答
  •  长情又很酷
    2020-11-28 05:35

    Not sure it will help but it's possible to manually set an alternative ip,gateway, dns etc for a particular access point in the Wireless settings. Whether you can do this automatically or using an intent is another question?

    I just saw this which might be helpful

    How can i call Wi-Fi settings screen from my application using Android

提交回复
热议问题