-1

does somebody know a explicit way to programmatically login to a website in an Android-App?

Thanks in advance :)

2 Answers 2

0

Don't cmpletely understand what you want, but if you just need to login and see the response, you could use a webview, and parse through the html like how to get html content from a webview?.

Sign up to request clarification or add additional context in comments.

Comments

0

this is an answer:

web.loadUrl("javascript: {" +
                                             "document.getElementsByName('authid')[0].value = '" + ID + "';" +
                                             "document.getElementsByName('authpw')[0].value = '" + PASS + "';" +
                                             "var submit = document.getElementsByClassName('inputbutton');" +
                                             "submit[0].click(); };");

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.