0

My scenario:

In my activity, I have to show 2 galleries, 1 with large image and another is a thumbnail(same exactly like default Gallery application).

My doubts:

  1. I am planning to save as 2 images(1 with large size and another one with thumbnail size) in sdcard for fast processing. Is that good practice? since it will increase the size.

  2. Or Shall I resize the large image during the getView method of BaseAdapter to small size for displaying in thumbnail gallery?

Which one is the good practice? I don't want to slow down my app.

Guna
  • 121
  • 8

1 Answers1

0

See this example.

I will suggest you that, put only your large image inside your sdcard. But at runtime, Android provides a good facility to get Thumbnails using MediaStore.Images.Thumbnails.

Edit:

You can also get use Loading Sample Sized Bitmap. This will first create a sample size of your requirement. Then will give you a Thumbnail sized Bitmap.

StackOverflowAnswers:

1) Get thumbnail of image on SD card

Community
  • 1
  • 1
Chintan Rathod
  • 25,864
  • 13
  • 83
  • 93
  • Thanks for your answer. But I want to save my images without any format, so it wont get reflected in any of the gallery or photo applications. So, I cant get from MediaStore, as you explained. – Guna Jan 23 '13 at 06:29