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
280
votes
20 answers

Get/pick an image from Android's built-in Gallery app programmatically

I am trying to open an image / picture in the Gallery built-in app from inside my application. I have a URI of the picture (the picture is located on the SD card). Do you have any suggestions?
Michael Kessler
  • 14,245
  • 13
  • 50
  • 64
245
votes
21 answers

android pick images from gallery

I want to create a picture chooser from gallery. I use code intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); startActivityForResult(intent, TFRequestCodes.GALLERY); My problem is that in…
Buda Gavril
  • 21,409
  • 40
  • 127
  • 196
220
votes
19 answers

Horizontal ListView in Android?

Is it possible to make the ListView horizontally? I have done this using a gallery view, but the selected item comes to the center of the screen automatically. I don't want the selected item at the same spot I clicked. How can I rectify this…
Praveen
  • 90,477
  • 74
  • 177
  • 219
184
votes
8 answers

How can I make a horizontal ListView in Android?

Possible Duplicate: Horizontal ListView in Android? Like many things in Android, you wouldn't think this would be such a hard problem but ohhh, by golly, would you be wrong. And, like many things in Android, the API doesn't even provide a…
Neil Traft
  • 18,367
  • 15
  • 63
  • 70
154
votes
20 answers

Android: Bitmaps loaded from gallery are rotated in ImageView

When I load an image from the media gallery into a Bitmap, everything is working fine, except that pictures that were shot with the camera while holding the phone vertically, are rotated so that I always get a horizontal picture even though it…
Manuel
  • 8,135
  • 10
  • 32
  • 29
133
votes
10 answers

Changing image sizes proportionally using CSS

I have been trying for a couple of days now to configure my thumbnail gallery so all the images appear the same height and width. However, when I change the CSS code to, max-height: 150px; max-width: 200px; width: 120px; height: 120px; I get images…
Lewis
  • 1,945
  • 5
  • 26
  • 52
121
votes
15 answers

How to add an image to the emulator gallery in android studio?

I am developing an image filter app. But can't really try it if i don't have any images. I know that i can test it in the phone, but it's not the same, since I need the error messages and other stuff. I just want to access an image from the AVD's…
user3013172
  • 1,637
  • 3
  • 15
  • 26
111
votes
12 answers

android - save image into gallery

i have an app with a gallery of images and i want that the user can save it into his own gallery. I've created an option menu with a single voice "save" to allow that but the problem is...how can i save the image into the gallery? this is my…
Christian Giupponi
  • 7,408
  • 11
  • 68
  • 113
97
votes
17 answers

Image, saved to sdcard, doesn't appear in Android's Gallery app

I save an image to the sdcard and it doesn't appear in the Gallery application until I pull off the sdcard and return it back. Do you have any idea why is it so? Seems like the Gallery application has some cache that isn't updated on file…
Michael Kessler
  • 14,245
  • 13
  • 50
  • 64
82
votes
2 answers

Mosaic Grid gallery with dynamic sized images

I have just received the following design for a project, for an image grid gallery, with dynamic width & height images (user submitted images). (Screenshot at the end of post) I have tried jQuery Masonry, Tympanus Automatic Image Montage and…
Dogoku
  • 4,585
  • 3
  • 24
  • 34
66
votes
4 answers

Single intent to let user take picture OR pick image from gallery in Android

I'm developing an app for Android 2.1 upwards. I want to enable my users to select a profile picture within my app (I'm not using the contacts framework). The ideal solution would be to fire an intent that enables the user to select an image from…
Damian
  • 8,062
  • 4
  • 42
  • 43
56
votes
13 answers

Android get image from gallery into ImageView

I'm trying to add a photo from galery to a ImageView but I get this error: java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://media/external/images/media/1 }} to…
user1378505
  • 563
  • 1
  • 4
  • 5
45
votes
6 answers

Get list of photo galleries on Android

I'm looking for: A list of the existing photo gallery names (hopefully their top thumbnail as well) The contents of the gallery (I can then load thumbnails and full size as needed) How would I go about getting a list of the "Galleries" (don't know…
ima747
  • 4,667
  • 3
  • 36
  • 46
35
votes
2 answers

Android ViewPager with previous and next pages visible?

I am currently building a horizontal gallery of videos. I'd like to make something like that with only one video centered and part of previous and next videos: I first opted for a Gallery but its limitations made me look for something else. I'd…
Romain Piel
  • 11,017
  • 15
  • 71
  • 106
35
votes
11 answers

android : deleting an image

I am deleting an image file from my application. I was doing new File(filename).delete (); This was actually deleting the file. But the image was still visible in the gallery. On search i found that we should use…
png
  • 4,368
  • 7
  • 69
  • 118
1
2 3
99 100