Android - Httpurlconnection cookie

Asked

Viewed 93 times

1

I have a native login screen on android, which the user enters login and password, and does a check via Httpurlconnection if the data is correct, if yes then it saves the cookie, and returns that the login was performed, then it is called a webview from that server, but when you call the webview, it appears that the user is not logged in, that is, the cookies are not stored. Is there any property to be configured in Httpurlconnection so that these cookies are saved for a webview?

  • that page is loaded from the web neh? is not inside the android app?

  • The screen is loaded inside a webview inside the app.

  • in that answer [http://answall.com/questions/12302/obteros-cookies-de-uma-sess%C3%A3o-iniciada-com-httpclient-no-android? Rq=1] is assigned a Cookiestore, this should solve.

No answers

Browser other questions tagged

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