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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:06:05+00:00 2026-06-07T06:06:05+00:00

I think, the title is so specific. So, I want to explain first that

  • 0

I think, the title is so specific. So, I want to explain first that I want to create a stamp application (like photobox) where we can put a lot of stamp images on the photo, save the image and the designs.

I am using option.inSampleSize in my code now. More likely this link : Strange out of memory issue while loading an image to a Bitmap object

This solved my problem when the image number is small. But when the image number (image count) is become larger out of memory exists again.

Is there any ideas from experts in here? Currently I’m still using ImageView to show the stamp images.

Or.. maybe there is no solution at this yet? The only thing that comes in my mind is to limit the number of images.

  • 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-07T06:06:06+00:00Added an answer on June 7, 2026 at 6:06 am

    Have you followed the Google tutorial for image caching? It outlines the pitfalls and shows you how to properly cache the images so you do not exceed your memory budget.

    Android Developer: Displaying Bitmaps – Cache Bitmap

    The key lines would be

    // Get memory class of this device, exceeding this amount will throw an
    // OutOfMemory exception.
    final int memClass = ((ActivityManager) context.getSystemService(
            Context.ACTIVITY_SERVICE)).getMemoryClass();
    
    // Use 1/8th of the available memory for this memory cache.
    final int cacheSize = 1024 * 1024 * memClass / 8;
    
    mMemoryCache = new LruCache(cacheSize) {
        @Override
        protected int sizeOf(String key, Bitmap bitmap) {
            // The cache size will be measured in bytes rather than number of items.
            return bitmap.getByteCount();
        }
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I think the question title seems to explain eveything. I want to detect whether
The title sounds like there is a lot of problems ahead. Here's my specific
I think my title was informative enough. :) I close the child window like
i think my whole questions is inside title bar =] but i'll explain little
I'd like to display some language specific characters from javascript but I can't. My
Err, I can't think of better title. Basically I have a class called MarketGroups,
I think I summed nicely it up in the title. I want to select
Sorry for the specific title, I tied to think of a way to generalize
How can I match all elements that have a specific attribute that is added
I think the title is self explanatory. What I'm looking for is material so

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.