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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:18:23+00:00 2026-05-21T23:18:23+00:00

In intent I can set such flag as FLAG_ACTIVITY_SINGLE_TOP . Can somebody explain me

  • 0

In intent I can set such flag as FLAG_ACTIVITY_SINGLE_TOP. Can somebody explain me its meaning, cause I just don’t get it? =)

  • 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-21T23:18:24+00:00Added an answer on May 21, 2026 at 11:18 pm

    The tasks page says for single top:

    If an instance of the activity already exists at the top of the current task, the system routes the intent to that instance through a call to its onNewIntent() method, rather than creating a new instance of the activity. The activity can be instantiated multiple times, each instance can belong to different tasks, and one task can have multiple instances (but only if the the activity at the top of the back stack is not an existing instance of the activity).

    For example, suppose a task’s back
    stack consists of root activity A with
    activities B, C, and D on top (the
    stack is A-B-C-D; D is on top). An
    intent arrives for an activity of type
    D. If D has the default “standard”
    launch mode, a new instance of the
    class is launched and the stack
    becomes A-B-C-D-D. However, if D’s
    launch mode is “singleTop”, the
    existing instance of D is deliverd the
    intent through onNewIntent(), because
    it’s at the top of the stack—the stack
    remains A-B-C-D. However, if an intent
    arrives for an activity of type B,
    then a new instance of B is added to
    the stack, even if its launch mode is
    “singleTop”.

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

Sidebar

Related Questions

I am making an app where the user can set an alarm based on
EDIT Just to clarify, there is no intent of putting this into production. Purely
Is there a free XML formatting (indent) tool available where I can past an
The intent here is to deal with obfuscated passwords for resources. We have an
I want my intent to be launched when the user goes to a certain
I am designing a web app and I intent to embed data on an
I'd like to track changes in inputs in a form via javascript. My intent
I want to display search result on the screen, i have implemented in such
There has been a lot of confusion and a set of corresponding set of
I am desperately trying to set TextView attributes of cells within a table programmatically

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.