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

import an image from gallery and set it to an imageview

I wanted to get an image imported from the gallery and set it to an imageview. I was able to select the image from the gallery but it ain't showing up in my imageview. I have tried some of the related questions but wasn't able to get the…
Sakhawat Hossain
  • 454
  • 8
  • 23
-1
votes
1 answer

Get an image from gallery Android Studio

I am trying to create an app in Android Studio that allows a user to choose a picture from their gallery. My code so far is: public void openGallery () { Intent intent = new Intent(); // Show only images, no videos or anything else …
Tori Harris
  • 563
  • 2
  • 7
  • 21
-1
votes
1 answer

StartActivityForResult Not Working with Fragments

I have a fragment as part of a bottom navigation. Inside the fragment, I have a button to select an image and show in recyclerview. I am handling the click event of this button from onBindViewHolder() of recyclerview by calling the method in the…
-1
votes
1 answer

Exception picking a image from gallery (SD Card) for use on my app... ¿why?

i am picking images on my app with android, and i dont know why, sometimes i got an exception, i think it's allways i select a image with more than 400 or 500 kb's but i am not sure. Why? because when i select small images of 100 kb i dont get the…
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
-1
votes
1 answer

Android - Passing integer value from One Activity to Android Native implicit intent and recive to another activity

I have One Activity name AlbumPicker. In that activity I am calling below code on Button click. Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); intent.putExtra("Example",…
-1
votes
1 answer

cannot access gallery android

I am using this code to pick image from gallery it was working but now it has stopped working (items[item].equals("Change from Library")) { Intent i = new…
Shariq
  • 51
  • 1
  • 6
-1
votes
2 answers

send a image from gallery in email service in android

I want to send images via email in my android app. For which I'm using Android Native Camera app and Intents to use the respective service. I've used the following code: Email is getting send but if I'm trying to add image the app gets crash. public…
-1
votes
1 answer

Android Marshmallow and Above Device - how to know “Never ask again” is checked by the user

I want to request for the permission android.permission.READ_EXTERNAL_STORAGE for getting Media data. But before requesting for that permission, i want to know whether it is blocked by the user by checking "Never ask again" check box. Is there a…
-1
votes
1 answer

Loading Images from Gallery into ImageViews Separatly

Ok so i have 3 ImageViews who load image from gallery when i click them. My problem is , how to set the Image that i have loaded in the specific ImageView . Im facing some issue with the ActivityForResult code (when load an Image and set it in…
-1
votes
2 answers

Can't see the newest taken picture in the gallery?

I am creating an android app where I take a picture using camera intent, then store the picture in the picture directory. Then my app required to upload it. But, As I take the first picture from the app I can't see it in the gallery. But, from the…
Soumya Rauth
  • 1,163
  • 5
  • 16
  • 32
-1
votes
2 answers

Selecting image from gallery android original image is not opening from outside

The problem is I am trying to select image from the gallery. After that if I open the original image from the gallery it's not opening (Black screen coming)! Even if I tried to select that picture again from the application, it's giving an error…
Ravi Teja
  • 1
  • 3
-1
votes
1 answer

Save photos to Android Gallery

I try to add a Bitmap photo that I took with the phone to the gallery in Android Studio but I am getting the error: Failed to insert image java.lang.SecurityException: Permission Denial: writing com.android.providers.media.MediaProvider uri…
Robert
  • 7
  • 3
-1
votes
2 answers

When I browse an image from the gallery, I select one image but in both ImageViews the same image is set

When I browse an image from the gallery, I select one image but in both ImageViews the same image is set. I want a different image in my ImageViews. Here is my screenshot: here is my Activity code: package com.example.deepak.imageuploaddownload; …
-1
votes
1 answer

Android select an image from the gallery and resize it before I pull it in

I'm running into issues with the images in my gallery being much much larger than I need them to be. I've looked for ways to reduce their size before I actually pull them in, but I'm just not quite putting it together as most of what I'm finding…
BrandenS
  • 591
  • 1
  • 5
  • 7
-1
votes
3 answers

java.lang.SecurityException:

I have made an application that opens my gallery when I click a button, when I select an image I want it to display on my screen however when I select a photo I want I get a runtime saying Caused by: java.lang.SecurityException: Permission Denial:…
Craig Gallagher
  • 1,613
  • 6
  • 23
  • 52