Get redirected link internally in android app

Asked

Viewed 1,249 times

2

Aloha

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

I will describe the situation

  • In this wifi network, when the user will login a unique url is generated for the user. That url can only be accessed at that time, and in any other request a new url is generated. All this using random tokens.

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

My initial idea

When Android comes across the need to log in to the network, it opens the url "http://connectivitycheck.gstatic.com/generate_204". So I wondered if I could have a way of, when the user clicks on Log in, open this link internally (without appearing to the user), take the single link with the token and return this url, so that it is used to log in.

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

Need more information, please ask.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.