Questions tagged [android-gallery]

Questions regarding using Android gallery application. Gallery application is the official media app installed on all Android mobile devices. The app allows browsing, organizing, sharing and editing of media (photos and videos).

Gallery application is the official media app installed on all Android mobile devices. The app allows browsing, organizing, sharing and editing of media (photos and videos).

Reference: Android Developers Gallery class overview

1181 questions
9
votes
3 answers

Get the position of the current image displayed in Gallery

in my application , i have a gallery of pictures, but i want to detect the position of the current image displayed , For example : when i launch my acvitivity, the position is 0, but when i scroll in my gallery,i want to get The position of the…
Houcine
  • 24,001
  • 13
  • 56
  • 83
9
votes
2 answers

Setting layout parameters for an element inside a Gallery

I am using a Gallery to display an horizontal timeline of events. Some of the events get Gravity.TOP and some Gravity.BOTTOM to align them above or below a nice line displaying the years. So far, so good. I want to change the left margin property of…
mgv
  • 8,384
  • 3
  • 43
  • 47
9
votes
5 answers

Gallery with folder filter

I'm using following code to open a gallery inside of my app Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType("image/*"); startActivityForResult(intent, FIND_RESULT); Is it possible to limit a list of images to only show images…
FrEaKmAn
  • 1,785
  • 1
  • 21
  • 47
9
votes
4 answers

onActivityResult doesn't call from viewPager fragment

Hi I am using viewPager with fragmnets inside main fragment. I am trying to get image to bitmap from gallery or from camera, but after picking photo and startActivityForResult it doesn't catch in onActivityResult... here is how i call…
9
votes
4 answers

How to make a custom grid with images in android ?

I want to make a custom grid with images that we usually see for gallery in android phones I have been searching it for couple of hours. But no luck favours and finally I am making an attempt to ask question here. Can someone please suggest me how…
user1497684
9
votes
6 answers

how to hide photos from gallery and store it in my app

I am developing an android application where it will select some photos from the gallery and hide them, i am able to select particular picture from gallery and store it in my app and delete it from gallery,but a person can see those pictures if he…
Mahantesh M Ambi
  • 786
  • 1
  • 13
  • 25
9
votes
2 answers

Scrolling a Gallery enables pressed state and removes click listener from subitems

I have a gallery of fairly complicated items. Each item is composed of an image and 2 buttons. When the gallery loads everything works, the buttons do what they are supposed to, and the pressed state for the buttons happens only on actual press of…
Leo
  • 4,652
  • 6
  • 32
  • 42
8
votes
2 answers

Choosing between camera and gallery for image selection

I am trying to allow a user to select an image, either from the gallery or by taking a picture with the camera. I tried this: Intent imageIntent = new Intent(Intent.ACTION_GET_CONTENT); imageIntent.setType("image/*"); …
8
votes
1 answer

Displaying all images from device in my app

I am using code below to get all images from Camera folder inside DCIM and display in my app. But I want to display all images on the device in my app regardless of where they are stored on the device. How can I do this? String…
8
votes
5 answers

Make image File visible in Android Gallery on Lollipop

I am trying to make some pictures that are taken in the app visible in the Gallery (so they can be shared and looked at outside of the app), but I want to keep the images themselves inside the data directory of the app so when the app is deleted…
8
votes
1 answer

Running Animation and image switcher at same time

I am trying to run the images from animation list after certain time,but I also have added the gallery at the top of the screen ,from where the user can select any image and it will be displayed,and I have created the thread which will keep starting…
Talib
  • 1,134
  • 5
  • 31
  • 58
8
votes
4 answers

Picking a photo from gallery and show in a image view

I have an app, which has a button to select a photo from your gallery and it works fine and after selecting the image my app show came back to the activity and shows the image in an image View. Every is working fine but sometimes ,when i select some…
Biplab
  • 564
  • 1
  • 5
  • 19
8
votes
3 answers

Open Gallery App in Android

I am trying to open inbuilt gallery app pressing a button in my app. I am trying out on Android 2.3 and above phones. The phones/tablet that I have are Samsung S (Android 2.3.5) LG phone (Android 2.3.3) Nexus One (Android 2.3.6) Android Tablet…
TheDevMan
  • 5,914
  • 12
  • 74
  • 144
7
votes
4 answers

How do I retrieve a picasa photo from a built-in gallery?

I want to retrieve the photos from built-in Android gallery calling ACTION_PICK Intent. I have a problem with Picasa's images. I have used the code to this link, but it don't work (the File object don't exist). Any idea, please.
Michel Foucault
  • 1,724
  • 3
  • 25
  • 48
7
votes
1 answer

How to listen new photos in android?

I need to listen to new images that comes from any source like downloading images, capture new images, other apps download images..etc Is there any listener that will trigger event whenever new photos is added to gallery? I have been searching for…