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

Android : Why Intent.EXTRA_LOCAL_ONLY shows Google Photos

What I'm trying to do in my application is to let the user choose a picture from his phone's gallery(Don't want to get gallery images only but also allowing a user to choose their app of choice). The code I'm using is as follows: Intent intent =…
Giru Bhai
  • 14,370
  • 5
  • 46
  • 74
7
votes
7 answers

Getting size of an image(in kb or mb) selected from gallery programatically

I am selecting an image from gallery.I want to determine the size of the image programatically in kb or mb. This is what I have written: public String calculateFileSize(Uri filepath) { //String filepathstr=filepath.toString(); File file =…
kgandroid
  • 5,507
  • 5
  • 39
  • 69
7
votes
3 answers

fetching images from gallery on android phones with internal storage

Hi I am developing an Android Gallery app where I am fetching images from built in gallery and displaying it.I am using the code as below String[] projection = {MediaStore.Images.Thumbnails._ID}; Cursor cursor =…
sanjana
  • 641
  • 2
  • 15
  • 36
7
votes
1 answer

Showing Images with carousel effect in android

Hi I want to have image gallery like this.I have tried using jazzyviewpager.It's good but doesn't have this effect. can anybody tell me how can i achieve this effect for showing images.
Manoj
  • 2,799
  • 5
  • 30
  • 49
7
votes
1 answer

Picture taken from camera or gallery when using in imageview its orientation getting changed, and sometimes vertically stretched in Android

In my application I have to capture image from camera or import from gallery, show it in imageview in activity. Everything is fine, I am getting image from both and able to set it on imageview without any exception. But sometimes image is not…
Prashant
  • 1,046
  • 14
  • 21
7
votes
0 answers

Android: which one is better, viewpager, gallery, horizontal scroll view ..... or?

I have a fragment and would like to add a gallery to it, but i saw that gallery was deprecated..... To be more specific, I would actually like to have a horizontal list view, as i would like to customize the view (include a image and text in each…
MW_hk
  • 1,181
  • 4
  • 14
  • 39
7
votes
1 answer

Image Gallery like the one on Google Play? (with viewing the next image)

I have tried to implement an image gallery like the one on Google Play store, where the next image is visible: I have tried different approaches for this but hit a dead end for each one: 1. Using a PagerContainer (here info) But this solution does…
6
votes
0 answers

How to delete thumbnails of deleted images in android?

I had links for images in hashset. From that, i downloaded pics. After I create bitmap from that url, I scan file to put it in gallery so that I can see it in gallery. I use following code. MediaScannerConnection.scanFile(obContext, new String[] {…
adityag
  • 603
  • 3
  • 8
  • 24
6
votes
3 answers

auto scroll a Gallery widget

I need to implement a gallery which scrolls one item at a time, and which can do 'autoscroll': i.e. every couple of seconds, it automatically scrolls to the next item. As per this thread: Android: Programmatically animate between images in Gallery…
noobler
  • 3,495
  • 4
  • 22
  • 26
6
votes
2 answers

Drag and drop Android Gallery images

I am working on an application which allows users to order items from a Gallery widget. The user must have the capability to select an order from the Gallery widget. Orders should display as images on the Gallery and the user must have the…
6
votes
1 answer

Awkward touch event propagation between views

I have a Gallery full of ImageViews, and the ImageViews are pinch-zoomable and translatable. My goal is that once an ImageView can no longer translate to the left/right, the Gallery will scroll. So sometimes the ImageView needs to handle the touch…
Jason Robinson
  • 31,005
  • 19
  • 77
  • 131
6
votes
2 answers

How to create ".nomedia" file and store images inside it Programmatically?

For my Application images are stored in my phone's internal storage and images are visible in the gallery, but my client wants images will not be visible inside the gallery. I added .nomedia file manually inside the folder where images are stored…
Rashid Kalhoro
  • 340
  • 4
  • 14
6
votes
2 answers

Android Gallery fullscreen

How do I implement a fullscreen gallery? i.e. image stretches to fill all the screen?
user468311
6
votes
2 answers

ScrollView inside Gallery, both scrolling independently

I have a Gallery with an adapter which supplies it ScrollViews as its child views. I need to make sure that the touch events are handled correctly and as expected: When the user scrolls horizontally, the gallery scrolls horizontally. When the user…
Warlax
  • 2,459
  • 5
  • 30
  • 41
6
votes
3 answers

how to open gallery to select multiple image?

I want to open gallery with multiple image selection functionality and i am using following code. Intent intent = new Intent(); intent.setType("image/*"); intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true); …
Prashant Sharma
  • 1,357
  • 1
  • 21
  • 31