Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 971365
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:57:14+00:00 2026-05-16T02:57:14+00:00

Android: i am using twitter authentication by launching webview Intent authIntent = new Intent(Intent.ACTION_VIEW,

  • 0

Android: i am using twitter authentication by launching webview

Intent authIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(authUrl));
startActivity(authIntent);

after successfull authentication onNewintent get call and control returns to my activity.

problem is webview still remain open after control return to my activity and if user press back button user can access that page again, how can i finish webview activity after control return to my actiivyt.

i would like to call finish on “authIntent” how can i ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T02:57:15+00:00Added an answer on May 16, 2026 at 2:57 am

    I preferred to launch the webview into a custom dialog and that way get full control over it. This includes using a WebView with a custom WebViewClient where the callback from authorization is handled in overridden shouldOverrideUrlLoading method.

    For a detailed example, you could check the FacebookSDK and how it handles the authorization page in a dialog: it’s a bit too much code to be pasted here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Android I am using jTwitter Twitter my_twiter = new Twitter(my_user_name,my_pass); my_twiter.setStatus(hello world); line 2
I want to know that how to follow a page on Twitter using android
I am working on twitter integration with android using Twiitter4j. I am trying to
I'm new to Mono for Android (using MonoDevelop) and Android development in general. I
I am trying to write twitter app using android. The twitter login page opens
Anybody can please help in Android + Twitter Integration using OAuth. I already worked
i want to know my screen name after logged in to twitter using oauth
Possible Duplicate: Can we post image on twitter using twitter API in Android? I
My android app is supposed to go through twitter using twitter4j libraries, and return
I am creating twitter client for android using twitter 4j,Oauth protocol.when i am connecting

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.