I want to reset/renew the DHCP in android through code so is there any way/command to achieve the same?
Android – How to reset/renew DHCP in android
androidandroid-intentandroid-ndk
Related Topic
- Android – How to stop EditText from gaining focus at Activity startup in Android
- Android – How to pass data between Activities in Android application
- Java – How to pass an object from one activity to another on Android
- Android – unique Android device ID
- Android – the difference between match_parent and fill_parent
- Java – Proper use cases for Android UserManager.isUserAGoat()
- Android – How to “select Android SDK” in Android Studio
Best Answer
Try using the WifiManager methods: call disconnect, then reconnect. You'll need to make sure you have the appropriate permission: I think you'll need
ACCESS_WIFI_STATE
andCHANGE_WIFI_STATE
at a minimum.See if that works for you.