Questions tagged [gallery]

Gallery is a collection of photos in a software system

3667 questions
34
votes
5 answers

Android: OutofMemoryError: bitmap size exceeds VM budget with no reason I can see

I am having an OutOfMemory exception with a gallery over 600x800 pixels JPEG's. The environment I've been using Gallery with JPG images around 600x800 pixels. Since my content may be a bit more complex than just images, I have set each view to be a…
Meymann
  • 2,500
  • 2
  • 25
  • 22
31
votes
2 answers

Intent for getting multiple images

Is there an intent requesting to get multiple images? We are aware of Intent.ACTION_PICK or Intent.ACTION_GET_CONTENT for getting a single image. Also our app registers as IntentFilter for android.intent.action.SEND and…
Miriam
  • 1,158
  • 1
  • 13
  • 23
29
votes
4 answers

Select multiple images from Photo Gallery on Android using Intents

@See this https://stackoverflow.com/a/15029515/185022 I`m trying to select images from gallery, but i only found the way to select a single image. Intent photoPickerIntent = new…
spe
  • 983
  • 6
  • 17
  • 23
29
votes
3 answers

android:select image from gallery then crop that and show in an imageview

i really need this code and i searched for 3 hours on internet but i couldn't find a complete and simple code and i tested many codes but some didn't work and others wasn't good,please help me with a full and simple code,thank you edit:i have this…
user3648435
  • 471
  • 1
  • 4
  • 15
29
votes
7 answers

How to stop scrolling in a Gallery Widget?

I loaded some images into a gallery. Now I'm able to scroll but once started scrolling the scrolling won't stop. I would like the gallery to just scroll to the next image and then stop until the user does the scroll gesture again. this is my…
Alexi
22
votes
4 answers

retrieve absolute path when select image from gallery kitkat android

As I am supporting my app to Kitkat version, now in this the way of retrieve file from gallery was different. I have preferred this Android Gallery on KitKat returns different Uri for Intent.ACTION_GET_CONTENT for retrieving file from gallery and…
Pratik
  • 30,114
  • 17
  • 82
  • 154
21
votes
4 answers

Android: out of memory exception in Gallery

My app shows a list of 9 categories and each category displays a Gallery-based coverflow (graciously offered by Neil Davies here) with images of the selected category. The images are fetched from the Web, each ranging from 300K to 500K in size,…
Rob
  • 14,167
  • 6
  • 22
  • 27
19
votes
9 answers

Android file delete leaves empty placeholder in Gallery

I insert an image via: ContentValues values = new ContentValues(); values.put(Images.Media.TITLE, filename); values.put(Images.Media.DATE_ADDED, System.currentTimeMillis()); values.put(Images.Media.MIME_TYPE, "image/jpeg"); …
Paul
  • 1,634
  • 7
  • 21
  • 45
18
votes
6 answers

android: how to hide folder from appearing in the Gallery

I have an application that creates a folder in the sd-card. After that, I do several operations which may result in storing different media files, graphics in my folder. The problem is that this folder is then visible in the Gallery section which is…
Farhan
  • 3,144
  • 13
  • 44
  • 60
18
votes
6 answers

How can I limit fling in Android gallery to just one item per fling?

I have a gallery with several full screen images. I want to limit the fling gesture to only advance one image at a time (like the HTC Gallery app). What's the right/easiest way to achieve this?
Gunnar Lium
  • 5,683
  • 9
  • 33
  • 33
18
votes
8 answers

Android: Refreshing the Gallery after saving new images

So in my application I at one point save a bunch of images to a temporary folder, and I want them to show up immediately in the Gallery. Off of a reboot, they do, but otherwise they don't. I've tried using the sendBroadcast method: …
BHendricks
  • 4,181
  • 5
  • 28
  • 56
18
votes
1 answer

"The type Gallery is deprecated", Whats the best alternative?

I was really surprised that such a Widget gets deprecated. I want a simple gallery that scrolls left and right, shows a picture on the whole Activity screen, and most important is that you cant swipe more than 1 image in any direction, even if the…
Omar
  • 7,085
  • 13
  • 58
  • 106
17
votes
3 answers

Android: drawable id change after resources modify

I have an android application that use a gallery component to choose an icon and assign it to a button. The icon set is located in res/drawable folder and is accessed in the gallery with the typical adapter of the guide: private Integer[] Imgid = { …
user842504
  • 325
  • 3
  • 8
17
votes
5 answers

iOS 11: [ImageManager] Unable to load image data

After update to iOS 11, photo assets now load slowly and I get this message in console: [ImageManager] Unable to load image data, /var/mobile/Media/DCIM/103APPLE/IMG_3064.JPG I use static function to load image: class func getAssetImage(asset:…
Bio-Matic
  • 717
  • 8
  • 19
17
votes
2 answers

Picture coming from camera or gallery?

I have an intent chooser that allows me to pick image from gallery or camera like this: Intent galleryIntent = new Intent(Intent.ACTION_GET_CONTENT,null); galleryIntent.setType("image/*"); …
Hossam Oukli
  • 1,217
  • 3
  • 16
  • 38