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 7588797
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T20:00:45+00:00 2026-05-30T20:00:45+00:00

After authenticating from my app, a new window is shown that later redirects back

  • 0

After authenticating from my app, a new window is shown that later redirects back to the application. Then onNewIntent() is called in my activity. But when select to go back to my app, the twitter web page still shows. Twitter page with a redirect back to the application should not be shown. How do I close the Twitter webview?

  • 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-30T20:00:46+00:00Added an answer on May 30, 2026 at 8:00 pm

    I call this method from my activity

    public void askOAuth(Context context,Handler handler) {
        _msg = new Message();
        _msg.arg1 = AUTHORISE_TWITTER_APP;
        mContext=context;
        this.handler=handler;
        consumer = new CommonsHttpOAuthConsumer(CONSUMER_KEY,CONSUMER_SECRET);
        provider = new DefaultOAuthProvider(
            "http://twitter.com/oauth/request_token",
            "http://twitter.com/oauth/access_token",
            "http://twitter.com/oauth/authorize");//
        //provider.setOAuth10a(true);
        String authUrl = provider.retrieveRequestToken(consumer,CALLBACK_URL);
        mContext.startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(authUrl)));
    }
    

    This open a web view(Twitter page that redirect back to my activity).
    After this it calls onNewIntent() function of my activity and activity is shown but when I press back button then it again show Twitter page .Now my problem is how to close that twitter page

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

Sidebar

Related Questions

I have problems with redirecting user after authorization back to the app tab in
After being told by at least 10 people on SO that version control was
After hours of debugging, it appears to me that in FireFox, the innerHTML of
I'm integrating Gigya with a web app running Acegi. I have it working that
I am using an IFrame application with XFBML and the new Javascript API. I'd
I'm creating a flash application that will post images to a url for saving
I'm writing an app that needs to write events to a calendar in the
I'm working on a Ruby on Rails application that used the Devise authentication system.
Using Ruby 1.9.3 and bcrypt-ruby 3.0.1 I'm working on the Depot app from the
I'm developing a webapp+android app that has its own registration flow - simple authentication

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.