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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T03:05:36+00:00 2026-06-14T03:05:36+00:00

in my app i am trying to show page curl effect using 100 images

  • 0

in my app i am trying to show page curl effect using 100 images as explained in the following github link – here

In the sample code they are using only two images but in my app i am using around 90 images. This causes the app to get crashed, saying the following issue in logcat

E/dalvikvm-heap(603): Out of memory on a 5529616-byte allocation.

When i tried with 7 images it was working good. When i try to increase more than 7, it gets crashed. All my images are in drawable folder.

In that github code the images from drawable are taken as follows

mPages.add(BitmapFactory.decodeResource(getResources(),R.drawable.page9));
        mPages.add(BitmapFactory.decodeResource(getResources(),R.drawable.page10));
        mPages.add(BitmapFactory.decodeResource(getResources(),R.drawable.page11));
        mPages.add(BitmapFactory.decodeResource(getResources(),R.drawable.page12));
        mPages.add(BitmapFactory.decodeResource(getResources(),R.drawable.page13));
        mPages.add(BitmapFactory.decodeResource(getResources(),R.drawable.page14));
        mPages.add(BitmapFactory.decodeResource(getResources(),R.drawable.page15));

how to resolve this issue and load all the images, any better suggestions…

  • 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-14T03:05:37+00:00Added an answer on June 14, 2026 at 3:05 am

    Use lazy loading mechanism. Do not load all bitmaps into memory at once, keep there id’s in an ArrayList, and load them as you need them, and after using them, unload the bitmap, so that memory can be released.

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

Sidebar

Related Questions

I've built browser app and trying to show 1920x1080 web page. I'm using ICS
I'm trying to make a status page on my app. This page should show
I'm trying to show graphs on my App using GraphView library. The code is
I am trying to post to my facebook page wall using curl but i
I'm trying to show a login page for an app I'm creating but I
I'm trying to show an about page to the users of my wallpaper app
In a Rails 3 app using Jquery, I'm trying to dynamically show/ hide form
I am trying to show Thai Characters in my app PHP / MySQL, data
So i am trying to show this clan roster in my app with this
I am a beginner iPhone app developer and I am trying to show 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.