Questions tagged [gallery]

Gallery is a collection of photos in a software system

3667 questions
277
votes
19 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,102
  • 12
  • 45
  • 61
220
votes
13 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
  • 19,769
  • 35
  • 114
  • 174
217
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
  • 86,996
  • 72
  • 173
  • 215
183
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
  • 16,833
  • 15
  • 58
  • 68
144
votes
19 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
  • 7,885
  • 10
  • 29
  • 29
116
votes
9 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…
Beaniie
  • 1,579
  • 2
  • 20
  • 36
104
votes
11 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
  • 6,801
  • 8
  • 55
  • 99
94
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,102
  • 12
  • 45
  • 61
89
votes
12 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,273
  • 2
  • 11
  • 20
81
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,437
  • 3
  • 20
  • 31
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
  • 7,822
  • 4
  • 40
  • 42
55
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
  • 553
  • 1
  • 4
  • 5
45
votes
5 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,617
  • 3
  • 31
  • 45
35
votes
10 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,228
  • 7
  • 59
  • 112
34
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
  • 10,535
  • 15
  • 67
  • 105
1
2 3
99 100