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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T14:45:36+00:00 2026-05-15T14:45:36+00:00

Ive made mis-leading topic in my last question, so i open this new question

  • 0

Ive made mis-leading topic in my last question, so i open this new question to clear what I realy want. sorry for the inconvenience.

I wanna run two system(Android) activities one after another in specific order from my main activity.

now as we know, startActivity is an asynchronous operation, so i cant keep on a specific order.

so i thought maybe I should try to do it with dialogBox in the middle but also running a dialogBox is an asynchronous.

now as i said the activities which i try to run are Android activities, so i cant even start them with startActivityForResult (or mybe i can, but i dont get any result back to my main(calling) activity)
Any tricks how could i manage with this issue?

Some code:

first activity:

      Intent intent = new Intent(); 
      intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
      intent.setAction(Settings.ACTION_APPLICATION_SETTINGS); 
      startActivity(intent);    

second activity:

Intent intent = new Intent(Intent.ACTION_VIEW); 
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 
intent.setDataAndType(Uri.fromFile(tmpPackageFile 
        .getAbsoluteFile()), 
        "application/vnd.android.package-archive"); 
startActivity(intent); 

as you can see, i dont have any access to those activites, i can just run thire intents from my main activity.

  • 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-15T14:45:36+00:00Added an answer on May 15, 2026 at 2:45 pm

    Since you can’t have 2 activities running at the same time, start the first, and then start the second once the first returns.

    One way of tracking this is to use the startActivityForResult method, it should allow you to control the order the activities are created.

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

Sidebar

Related Questions

I want to skin a vb.net app I made ive googled some stuff and
Sorry but im an absolute noob with javascript. Ive made a form for a
I've made a class which inherits from UserControl, but which I only want to
I've made a Django site, but I've drank the Koolaid and I want to
I've made this decorator, which results in an infinite redirect loop. The problem is
Ive made a small program in C#.net which doesnt really serve much of a
Hey there. been a busy debugger today. ill give ths short version. ive made
Question This question was originally to find out if anyone knows of a way
Ive made a key in HKEY_LOCAL_MACHINE\Software\MyAppName (with regedit (ive rebootet)), but when i try
based on How to implement tagging system similar to SO in php/mysql? ive made

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.