Many people have been facing a weird Wifi problem in Android phones
As you can see in the above pic, when we try to turn on wifi, it simply displays error.
So as to fix this problem,some people suggest to do a Factory reset.But, it is completely unnecessary.Instead you can try the following methods, which where tested by me successfully.
1. Dial *#*#526#*#* to reload the wifi driver.If it doesn’t work, restart your phone and dial it once gain.It will work for sure.
2.There is an app “Wifi-Fixer” from android market,which claims to be fix this problem.But seriously,it hadn’t worked for my mobile phone(Samsung Galaxy Ace).But,
if you are interested, can download and try it here.
For samsung users, I have a pretty good trick which works very well.
When you have obtaining IP address problem,
1.Turn off wifi.
2.Open “Allshare”, then you will be asked to connect to a wifi network.
3.Then select the wifi network that you need to connect from the list opened.
Magically, you will be connected without any extra effort.This works 100% sure without fail.
Is this doesnot work, try the new updated fix here