Your phone WiFI connection disconnects frequently because of the poor signal strength of the router or something has gone wrong with the WiFi hardware of your device. If you're connectin your mobile to public hotspot, get into the radius of the hotspot or ask the router owner to increase signal...