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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:43:05+00:00 2026-05-25T23:43:05+00:00

I have two activities. One activity has the main game and the other activity

  • 0

I have two activities. One activity has the main game and the other activity has the game over screen which is truly just a custom alert dialog. In the game over screen there is a button that when clicked launches a new Activity.

String authUrl = httpOauthprovider.retrieveRequestToken(httpOauthConsumer, OAUTH_CALLBACK_URL);
            Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(authUrl));             
            intent.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY );
            startActivity(intent);

The page is a twitter authorization page but the problem I am having is that when I click the Authorize App button the activity with the alert dialog launches again (Calling create instead of onNewIntent).

I have tried different launch modes (singleInstance,singleTask and singleTop).

Each of them have their problems. singleInstance and singleTask will clear the original calling activity so when the AlertDialog slides in the original activity is changed to the menu page. singleTop always calls create again first (eventhough it doesn’t call onDestroy)

Does anyone have any recommendations or examples on how I can get this done?

Incidentally, the activity that calls the game activity is a standard launchmode

Thanks in Advance

  • 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-25T23:43:06+00:00Added an answer on May 25, 2026 at 11:43 pm

    What I ended up doing was make the call to the the new activity from the original caller. So when I choose to to tweet the message from the custom alert dialog I close the alert dialog activity with the result requesting a tweet and from the original activity I make the call to the third activity (twitter authorization). It’s not the answer I was looking for but this is how I solved the problem. If anyone knows a better more eloquent solution I’d love to know it.

    SO The flow now goes A->B->A->C->A->B instead of A->B->C->B

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

Sidebar

Related Questions

Newbie question... So I have two activities, Cherry and Apple, and each one has
I have two activities in the sequence which in a transactionscope which has isolationlevel
I have an Android Honeycomb application with two activities; the first one has a
I have two Sharepoint lists: - Assignments - Activities The activities list has a
I have two webapplication, one is a simple authenticationsite which can authenticate the logged
I have two Activities: one with VideoView attached to MediaPlayer and the second one.
I have one problem using ActivityGroup . I have two activities inside an ActivityGroup
I have two activities The first one gets some data from a content provider,
I have two SQL queries, where the first one is: select Activity, SUM(Amount) as
I have 3 activity in my application. My first activity (Main) has 2 button

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.