How can I automatically login to Hotspots service?
===

I'm working on an app which logs automatically in to a hotspot service. 
The service I want to uses is a unprotected WiFi-connection which asks a login and password in the first screen you open. 

I want to let the app do it automatically so you don't need to do it each time by yourself. 

Can someone tell me which functions I need to use and how it works? 