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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:17:55+00:00 2026-06-11T02:17:55+00:00

I have build an android application which has a main menu. In the main

  • 0

I have build an android application which has a main menu.
In the main menu the user can select different “apps” that opens a new Activity with a Runnable.

The menu gets displayed over a custom ListViewAdapter. Every element in the adapter holds a bitmap of displayed menu entry. My Bitmaps uses ~3 MB memory.

So my question is if its wise to free the menu entries when the user opens an under app and build it new when he return to the menu.

EDIT: So I think I did not describe my problem or the question good enough.
The main menu has a List of the custom object MenuEntry. Every MenuEntry holds an Drawable for the displayed icon.
My ListView has an Adapter that takes the Drawable and use it in an ImageView for displaying the icon in the MenuEntry.

So I think that it would be a good idea to drop my list of MenuEntry when the MainMenu Activity gets paused to free up some memory (~3 MB). And build the Entries new when the user reopens the main menu.

  • 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-11T02:17:56+00:00Added an answer on June 11, 2026 at 2:17 am

    I do not quite understand why “element in the adapter holds a bitmap”.
    Maybe this will be helpful: LazyList – stores bitmaps in the disk cache: Lazy load of images in ListView

    Displaying Bitmaps Efficiently – http://developer.android.com/training/displaying-bitmaps/index.html

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

Sidebar

Related Questions

I want to build an notepad-style application on android that will have syntax highlighting.
I have to build a feature in my application which allows user to send
I have build an Android application which capture images and save in the /mnt/sdcard/Pictures/MyFolder
I have an .apk application for android which has been compiled and packed with
I have a shared library that I build with the Android NDK, which ends
I have built an android application which has a single mapview. I have a
I'm having a strange problem with Android 1.6 I have an application that has
Im new to android. i have tried to built an application which has 2
I have build my very first application to Android and I want now to
I have a simple Android application that uses a JAR I have built. When

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.