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

  • Home
  • SEARCH
  • 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 7929219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T20:00:26+00:00 2026-06-03T20:00:26+00:00

Steps: User starts app from Android Market application User clicks Start child stack: ActivityMain

  • 0

Steps:

  1. User starts app from Android Market application
  2. User clicks “Start child”

    stack: ActivityMain > ActivityChild

  3. User presses home button and returns to the app through “launch icon”

  4. Android opens “last task” + create next ActivityMain

    stack: ActivityMain > ActivityChild > ActivityMain

I expect that click on “lauch icon” will just return to previous stack [without actually creating new activity].
I expect stack:

ActivityMain > ActivityChild

How to achive it???

On the other hand, when user in the above 1st step starts app dicertly from “launch icon” then the problem does’n exist.

Manifest:

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name" >
    <activity
        android:label="ActivityMain"
        android:name=".ActivityMain" >
        <intent-filter >
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:label="ActivityChild"
        android:name=".ActivityChild" >
    </activity>
</application>

Thanks for help!

  • 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-06-03T20:00:27+00:00Added an answer on June 3, 2026 at 8:00 pm

    Solution:

    Introduce “launcher activity” which is responsibe for:
    – either starting new task,
    – or restoring previous task.

    Launcher is started as “singleInstance”.

    public class ActLauncher extends Activity {
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            Intent i = new Intent(this, ActivityChild1.class);
            startActivity(i);
            finish();
        }
    }
    

    For example, assume we have activities:

    ActLauncher [mode=singleInstance]  
    ActChild1 [mode=standard]  
    ActChild2 [mode=standard]
    

    Now at some moment user executed sequence:

    AndroidMarket > ActLauncher > ActChild1 > ActChild2
    

    then HOME
    and then return to app but by launcher icon “ActLauncher”.
    This brings user to full previous back stack:

    ActChild1 > ActChild2
    

    I applied the solution in this app
    There:
    – ActLauncher = “invisible”
    – ActChild1 = main screen
    – ActChild2 = game screen

    Best wishes!

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

Sidebar

Related Questions

I created app which user can start from menu and from icon. I do
In my app, I start an eight step wizard from my landing page in
I have one user that can't run my iPhone app. It starts up fine
I'm currently building an app that will play sounds. When a user starts a
I'm interested in creating a system where the user can define the steps in
I'm interested in creating a plugin that does this simple task: Steps 1. User
I have a step in my application where a user repeatedly hears three spoken
Problem description : - Step 1: Take input FILE_NAME from user at main thread.
What steps should I follow to upgrade a Ruby project from 1.8.6 to 1.8.7?
What steps are needed to compile Version Information inside a windows DLL from the

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.