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
3
votes
1 answer

Gallery images taken on Samsung androids always in landscape even if taken in portrait

Picking images from gallery with the following code: Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent.setType("*/*"); intent.addCategory(Intent.CATEGORY_OPENABLE); startActivityForResult(intent, PICK_FILE_RESULT_CODE); Getting result…
user1354603
  • 4,034
  • 4
  • 31
  • 43
3
votes
1 answer

how can i access the camera roll/Photos on Android?

I am having difficulty finding a way to opening a users camera roll/photo gallery on a button click on Android. The solution I am looking for includes accessing the camera roll/photo galley, allowing the user to select an image, saving that selected…
Cari95
  • 313
  • 6
  • 16
3
votes
2 answers

Android Automatic Circular Gallery

I am having gallery widget contains 1-10 images to slide. I know that when I stripe the screen , the images scroll from left to right. I want automatic circular gallery after 10 automatically start by first image, is there any automatic circular…
Ye Lin Aung
  • 11,234
  • 8
  • 45
  • 51
3
votes
5 answers

Getting Image from gallery in android

I've been trying to get an image from gallery in this app and then on a button click I want to upload to my PHP server. The "selectedImagePath" comes as null why? If anyone has a solutions please help me! Thanks in advance. onCreate() img =…
BrijD
  • 103
  • 1
  • 2
  • 10
3
votes
1 answer

Open a specific folder inside gallery android

I have a camera app which save image to separate folder inside the gallery. Path to my folder is /storage/emulated/0/Pictures/CameraExample/ When I click on the button I need to open the folder where I have saved the images. I have used all the…
Likith Ts
  • 296
  • 1
  • 7
  • 18
3
votes
2 answers

Select video from gallery, cannot find symbol RESULT_LOAD_IMAGE

Select video from gallery I am trying the following code to get a video from my phone's gallery: Intent mediaChooser = new Intent(Intent.ACTION_GET_CONTENT); mediaChooser.setType("video/*, images/*"); startActivityForResult(mediaChooser,…
kinezu
  • 1,212
  • 2
  • 12
  • 23
3
votes
2 answers

Camera folder images appear rotated

I'm trying to process images in my app. The problem I'm currently facing is related to orientation of images. The thumbnail of the images selected from camera folder of Android appears 90 degrees rotated. I'm getting the thumbnail as following; …
Ammar
  • 1,811
  • 5
  • 26
  • 60
3
votes
2 answers

Images not being saved when picture is taken by camera app that isn't the stock camera

I'm currently trying to save images taken from a phone to its gallery, but the code below only works if I choose the stock camera app when the chooser dialog pops up. Whenever I choose another camera app(e.g., the Google camera), the taken picture…
user2858182
  • 175
  • 1
  • 7
3
votes
2 answers

Android crop intent doesn't work on system gallery app but works on 3rd-party app

I try to pick an image from sdcard and then crop it. ACTION_PICK is OK, but when i call ACTION_CROP, my system gallery app (I call it as A) can't done the action, but another app (B) can. I tried the following cases: 1/ Pick by A and then crop by…
Justin
  • 4,400
  • 2
  • 32
  • 36
3
votes
0 answers

android retrieving images from gallery resolveUri failed on bad bitmap uri warning

Actually I am retrieving images from gallery so that some images are not displaying in listview I am getting this warning and How I need to mention mime type for images please help me. warning 01-21 15:34:13.880: I/System.out(25658): resolveUri…
skyshine
  • 2,767
  • 7
  • 44
  • 84
3
votes
0 answers

Add online album to Android Gallery App

I have a large amount of online images stored on my server. I have created a small java server backend to provide album lists and images per album, including a small management console. I want to use/view these images on my Android device, by using…
djBo
  • 930
  • 1
  • 8
  • 26
3
votes
2 answers

how to detect image file in android

I have a requirement where existing image file extension being changed to something else and saved on device. When i change extension of .jpg to some thing like .xyz, this same image file is not being detected by android as a image file and not able…
Manju
  • 677
  • 5
  • 13
  • 27
3
votes
1 answer

Android: implement ViewPager that only loads new pages

I am trying to implement a gallery that always loads a new image, no matter if the user swiped left or right. What I did is to tell my PagerAdapter.instantiateItem(v,position) to load image at mPosition++, where mPosition is initialized to 0. Note…
Yotam
  • 9,789
  • 13
  • 47
  • 68
3
votes
1 answer

How do design a resizable ViewPager gallery?

I've tried to come-up with a custom solution for this but I am not quite familiar with the android UI. The application in question can be found here: https://play.google.com/store/apps/details?id=com.expedia.bookings&hl=en Basically, as the user…
3
votes
1 answer

read all image files in gallery on android

When I read from the following two locations, only some of the photos are read: File appStorage = context.getExternalFilesDir(Environment.DIRECTORY_PICTURES); File externalStorage =…
Pouton Gerald
  • 1,625
  • 22
  • 32