title: Close activity after successful user login (WebView)
body: <p>I'm making an Android mobile application which uses 3rd party login page for authentication loaded in WebView. When user enters username/pass and submits the form it saves cookie on user's device and redirects user to the next page. </p>
  
  <p>What I want to do here is to prevent that redirection, close login activity after the cookie has been saved to user's device and display main activity to the user.</p>
  
  <p>Any advice? Thanks.</p>