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 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 can pick a image and its path using intent. with the use of
Can somebody explain the common way to handle C2DM intents work? I have an
The intent is to create a set of web services that people can reuse.
Can someone tell if why when starting an activity with startActivity(intent) , calling getParent()
In my application user can share information with different apps using: shareIntent.putExtra(Intent.EXTRA_SUBJECT, Link from
How can I set dynamically created bitmap as livefolder icon in android? LiveFolder takes
The Preference class allows for an Intent to be set, to have a preference
I've got a receiver set up in my android application to catch android.intent.action.NOTIFICATION_REMOVE intents.
I want to add this facility into my app in which user can set
I want to get the AM/PM values through the timePickerDialog. my code is such,

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.