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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:37:44+00:00 2026-06-03T09:37:44+00:00

When I call the popBackStack like: manager.popBackStack(mybackstack, FragmentManager.POP_BACK_STACK_INCLUSIVE); will the memory retained by the

  • 0

When I call the popBackStack like:

manager.popBackStack("mybackstack", FragmentManager.POP_BACK_STACK_INCLUSIVE);

will the memory retained by the fragments that belongs to “mybackstack” will be freed?

I have a FragmentActivity that manages a ListFragment. Every time I click on item, the FragmentActivity instantiates a new Fragment which shows some information about the item clicked and then shows a DialogFragment with a Bitmap (that I recycle when the dialog is dismissed). I put the android:configChanges="orientation" in the manifest and override onConfigurationChanged as necessary.

  • 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-03T09:37:46+00:00Added an answer on June 3, 2026 at 9:37 am

    Yes, the memory retained by the fragments will be freed. From the documentation,

    public static final int POP_BACK_STACK_INCLUSIVE

    Flag for popBackStack(String, int) and popBackStack(int, int):
    If set, and the name or ID of a back stack
    entry has been supplied, then all matching entries will be consumed
    until one that doesn’t match is found or the bottom of the stack is
    reached. Otherwise, all entries up to but not including that entry
    will be removed.

    and,

    public abstract void popBackStack (String name, int flags)

    Pop the last fragment transition from the manager’s fragment back stack.
    If there is nothing to pop, false is returned. This function is
    asynchronous — it enqueues the request to pop, but the action will
    not be performed until the application returns to its event loop.

    Note, however, that there is no guarantee that this memory will be freed immediately.

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

Sidebar

Related Questions

Which call is correct ? Seems that both calls have same result. UIImage *img
I call addNotify() method in class that I posted here. The problem is, that
Call like: mAsyncRunner.request(me, params,new AsyncFacebookRunner.RequestListener() returns me all info for user /according to permisions/.
I call a template like this from my view: return render_to_response('mytemplate.html', context_instance=RequestContext(request)) I'm trying
A call to getLocationOnScreen() or getLocationInWindow() both give me a top/Y coordinate that is
Call me crazy, but I'm the type of guy that likes constructors with parameters
I call a function that stacks two async calls and calls a callback when
Every call to the server gets the Accept-Language value, but can I get that
I have two AsyncTasks that I am using, one is called up after a
Call me stupid but this thing has been eating away my productive time like

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.