Galaxy S4: your internet connection is unstable.

I had same problem my wifi was unstable i just disconnect my router for 10 seconds reboot and it solved my problem