But I now need this to happen from within a Service, so a webview is not an option.
Is there another method available .. HTTPClient ect .. which would be good as I will be parsing the page when loaded.
You can use HttpUtils2 to send requests that imitate a browser. If you only need to log-in to a specific web page then you should use a tool such as Firebug to understand the log-in process. In most cases it is not too difficult.
Ok .. at a complete loss how this works .. As I stated above , can successfully log in to a webpage using WebView.
B4X:
Dim Javascript As String
Javascript="document.forms.login_form.login.value='abcdef@email.com';" _"document.forms.login_form.password.value='ABC123'document.forms.login_form.submit();"
WebExtras1.executeJavascript(WebView1, Javascript)
I have now tried all forms of posting a string using HttpUtils2 and utilizing Firebird to view/study the webpage (without really knowing what I'm looking for)