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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T18:02:11+00:00 2026-06-07T18:02:11+00:00

Most of my activities load dynamic data from a server, and when the page

  • 0

Most of my activities load dynamic data from a server, and when the page comes back into focus, i reload it anyway. It seems wasteful to keep them around if I’m just going to reload them, so I thought of calling finish() on them if the user navigates away from the page.

Its confusing if some activities you can press the back button to go to and others no because I’ve called finish() on them, so I was wondering if its bad practice just to call finish() on all activities the user navigates away from? (I have a navigation bar at the bottom of every activity so the back button isnt necessary). Or, is it better practice not to call finish() on any of the activities and just hope they dont slow down the phone and that the OS will take care of garbage collecting them?

I’m new to Android programming and and don’t have an Android phone so i’m not sure what is the common/best practice in this situation, or if its just a matter of personal taste.

Also, is it possible to instruct Android to keep a history of activities so that the back button still works, but finish() them when they navigate away so that they’re not needlessly taking up resources?

  • 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-07T18:02:14+00:00Added an answer on June 7, 2026 at 6:02 pm

    While you may reload all your data on returning to the activity, there is still no point on calling finish().

    When activities are hidden, they do not use resources, and are of no real problem. Just leave them as is, and then when the user navigates back, it will reload it as required.

    In this state, they can also be garbage collected if required – which is all taken care of by android.

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

Sidebar

Related Questions

Most things are dynamic in SSRS i.e you can create a custom expression for
Most databases support some form of insert into select... statement. insert into a select
Most of my clients require donation and shopping cart integration into their websites. I
I've embedded all the activities for a user and let's say most user has
I have an Android application composed by several Activities. Most of them need to
I have an application which consists of two activities/screens and a java class from
I'm working with some existing PHP/MySQL code. I'm logging/tracking certain activities into a MySQL
In my application I have about a dozen of Activities. However, most of these
I have an abstract Activity as most of my activities share the same menu:
Most of the examples that I've seen on Workflow Services put activities between 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.