Get internally redirected link in the android app

2

Aloha

I'm developing an Android app to auto-log in to the wifi network, but I found a barrier. In the application, when the user clicks the "Log in" button, I need to internally access some address that will be redirected to the correct link.

I'll describe the situation

  • In this wifi network, when the user is going to login a single url is generated for the user. That url can only be accessed at that moment, and on any other request a new url is generated. This all using random tokens.

  • There is no single url that, when accessed, opens the login page.

My initial idea

When Android encounters the need to log in to the network, it opens the link url. So, I figured if I could have a way to, when the user clicks Logar , open this link internally (without appearing to the user), grab the single link with the token and return this url, that is used to log in.

I can not say that this will work, but it is my best idea so far. I am open to new ideas, of course, but if anyone has a sense of how to do this and can provide me with a source code to perform the function, it would be great.

Looking for more information, please ask.

    
asked by anonymous 09.12.2017 / 17:01

0 answers