Fix Obtaining IP Address Android WiFi Problem.
This is a common problem in android.
The name of the issue says it all. Android fails to obtain an IP address from a wireless router: connection attempt fails. It goes through stages in an infinite loop:
1.Obtaining IP address
After searching about this problem on internet, I found that many other people facing the same problem.
There is a light weight app, that fix this problem in single step.
Download WiFix from Google Play
It has automatic mode and manual mode.
If you are unable to browse internet after auto-fix, you need to use manual mode.
Read this: http://mhotspot.com/blog/how-to-use-wifix-manual-mode-settings/