Questions tagged [gallery]

Gallery is a collection of photos in a software system

A photo gallery is a GUI allowing users to view pictures from their local file system or network shared files. Galleries usually include features to manage and edit files, as well as print or upload them. Often times galleries allow the user to click arrows on the left and right edges of the viewer to select the previous and next photos within the files. There are many different photograph viewing programs available for multiple operating systems.

3768 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,520
  • 2
  • 28
  • 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,178
  • 2
  • 13
  • 23
30
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
  • 1,031
  • 6
  • 18
  • 24
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
  • 18
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
25
votes
10 answers

How to save an image to the photo gallery using Flutter?

My flutter app uses the camera package to take a photo, which I save to the application's data directory (obtained from path_provider and the getApplicationDocumentsDirectory() function). How can I save this image file into the phone photo gallery?…
Duncan Jones
  • 67,400
  • 29
  • 193
  • 254
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,639
  • 18
  • 84
  • 159
21
votes
9 answers

how to save bitmap to android gallery

unfortunately the solutions I've found didn't work on android 5.1.1. I have a bitmap called source. I need to save it directly to my phone's gallery. My manifest contains
Mihail Kudrin
  • 321
  • 1
  • 2
  • 4
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
  • 15,041
  • 6
  • 25
  • 27
19
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,206
  • 14
  • 49
  • 62
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,714
  • 7
  • 22
  • 45
19
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,423
  • 6
  • 32
  • 59
18
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
  • 345
  • 3
  • 8
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
  • 6,023
  • 9
  • 35
  • 33
18
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,296
  • 3
  • 19
  • 42