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

How to implement an image gallery (local images)

Currently im making an app to show images from SD card. Basicly you make an album and add pictures to it, be it from camera of the MediaStore picker. I tried implementing 2 methods: The standard gallery app with a custom BaseAdapter to return a…
4
votes
1 answer

Load photo in the gallery as bitmap object in Android

How can I load the images from the gallery as android Bitmap objects???
AndreaF
  • 11,975
  • 27
  • 102
  • 168
4
votes
2 answers

Android: Custom Gallery setSelection() issues

I have an extended BaseAdapter that has LinearLayout children (an ImageView and a TextView in each) hooked up to a custom Gallery. When I first launch my Activity, I want to call setSelection(position) to cause the ImageView to change its selector…
4
votes
3 answers

How to save a bitmap into phone's gallery?

I take a photo and show it in an imageview. Then I get the bitmap from the imageview in my activity and when I press a button I want to save this bitmap into phone's gallery. What should I do?
gulsen
  • 103
  • 1
  • 1
  • 6
4
votes
1 answer

Buttons inside ScrollView inside Gallery don’t respond to click

I have a Gallery with ScrollViews as child items. Scroll view can contain text, images and button inside of the scroll area. I need to make sure that the touch events are handled correctly and as expected. I’ve found solution a good here: ScrollView…
4
votes
1 answer

Android gallery slideshow animation

I'm developing a gallery app, in this app I'm displaying images in slideshow using gallery. It's working fine, but I want to add some animation. I can apply only one animation with this code but I want to add two animation effects in gallery…
sathishkumar
  • 63
  • 1
  • 5
4
votes
2 answers

How can I set a default selected item for my gallery?

I have a gallery and I want to set a default selected item when I launch the activity. The goal is to have the contain of the first item appears automatically. Is there anyway to do this ? thx a lot for answers.
Atheh
  • 615
  • 1
  • 6
  • 11
4
votes
0 answers

Fetching All Images From Gallery using Paging3 library

I am trying to get all the Images from Gallery and displaying them in a recycler view. To fetch images I am using Paging 3 Library. Everything is working fine when I am scrolling from Top to Bottom I am getting all the images with pagination but…
4
votes
1 answer

Android save image uri in internal storage

lets say I created an intent to pick an image from gallery or any other directory, I should get a uri from onActivityResult(), is it possible to copy the exact uri to a local file (intetnal storage). onActivityResult(){ //get image uri …
Hasan Bou Taam
  • 4,017
  • 2
  • 12
  • 22
4
votes
0 answers

Android gallery problem setting image size via xml

In the gallery tutorial they create a new ImageView in code and apply Gallery.LayoutParams. I use a gallery with a custom adapter and want to inflate a imageview from xml and use that as the gallery item. The problem is, that the given size (see…
qedejavu
  • 442
  • 6
  • 19
4
votes
3 answers

Android app restarts during gallery intent

My app launches the gallery to choose a photo. In the meantime, my app gets killed by the operating system, so that when I select the image my app needs to start up all over again. NOTE: this is a transient issue. It often works just fine. When it…
IanS
  • 1,459
  • 1
  • 18
  • 23
4
votes
0 answers

Android crash when picking an image from Google drive

I made an Gallery Pick Intent. final Intent galleryIntent = new Intent(); galleryIntent.setType("image/*"); galleryIntent.setAction(Intent.ACTION_GET_CONTENT); activity.startActivityForResult(galleryIntent, requestCode); I…
vasile
  • 505
  • 1
  • 4
  • 11
4
votes
4 answers

Pick Image From Gallery Or Google Photos Failing

EDIT: I wanted to update what the problem really is. On a Samsung phone you have "Gallery", inside "Gallery" you can also see your google photos backups. This is the photo selection I'm trying to get at. Now on other apps (Close5) they simply…
Petro
  • 3,484
  • 3
  • 32
  • 59
4
votes
4 answers

Save video to Internal Storage

I have a videoView that plays an video from a path that corresponds to a video file within the android gallery VideoView videoView1 = (VideoView)promptsView.findViewById(R.id.videoView09); String SrcPath =…
4
votes
2 answers

Android how can i get thumb image of video file from gallery

I need to show the selected video file from gallery in my listview. I have successfully fetched the uri of video file but i am not able to get the thumb image of video file. Here is the code i have used for fetching image of video file from uri,…
Nidheesh
  • 433
  • 10
  • 20