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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T22:47:34+00:00 2026-05-21T22:47:34+00:00

While developing reasonably complex applications (e.g. accessing external resources such as files, database, network

  • 0

While developing reasonably complex applications (e.g. accessing external resources such as files, database, network connections) on Android platform is it necessary to handle the Garbage Collection? Or should I let Android take care of GC all the time?

So does Garbage Collector relives an Android programmer from all burden of freeing memory?

If not, then can anybody explain with a practical example why is it so?

  • 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-21T22:47:35+00:00Added an answer on May 21, 2026 at 10:47 pm

    In general, GC helps programmers avoid many problems, but it is not a cure-all. As a programmer using a GC’ed system, you have two main things to worry about in terms of the allocation lifecycle:

    • Dropping references (e.g. setting variables to null) when objects are no longer needed. Failing to do so could result in a memory leak.

    • Explicitly managing non-memory resources, such as open files. The objects representing these things typically arrange to free up the resources when the objects get GC’ed, but as the programmer you may have a better idea about when the resource is truly unneeded. So, it is in your best interest to (say) explicitly call close() on an InputStream instead of just letting the GC clean it up long after it’s no longer needed.

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

Sidebar

Related Questions

I've been developing Web applications for a while now and have dipped my toe
While developing ASP.NET applications I often need to parse a boolean value given in
While developing a Launcher (Homescreen) application for Android, I've come into a security exception
Just a wondering while developing a network traffic inspection program, no context is relevant!
I am developing an Android application where I get the following exception while writing
I am deciding on where using .xib files are needed while developing with MonoTouch.
While developing I've seen a couple different ways to get local resources values from
I'm having some performance issues while developing Android apks. My machine is an AMD
While developing a C++ application, I had to use a third-party library which produced
While developing products, we often need to create proprietary tools to test some of

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.