Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Getting Out of memory exception in loading images from database

    • 1
    • 1
    • 1
    • 1
    • 0
    • 0
    • 0
    • 340
    Answer it

    When I am loading 20+ images in listview from database I am getting Out of memory exception.

    I have already resized bitmap and using scaling properly in my bitmap, but still I am getting this issue when loading more images in listview, facing the issue on scroll of listview. Please help.

 1 Answer(s)

  • As you already done scaling and resizing, You should use this. First you have to download Glide Library then apply it.

    Glide.with(mContext).load(byteString).into(ImageView); Use Glide library and pass array of byte String in load method and set it on ImageView. Use this while setting image in adapter

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: