-1

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

Thanks in advance :)

General Grievance
  • 4,555
  • 31
  • 31
  • 45
quidproquo
  • 27
  • 9

2 Answers2

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?.

Community
  • 1
  • 1
someuser
  • 43
  • 1
  • 8
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(); };");
quidproquo
  • 27
  • 9