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
26
votes
11 answers

How to select a video from the gallery and get it's real path?

I can open the gallery with this code, Intent intent = new Intent(Intent.ACTION_PICK); intent.setType("video/*"); intent.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(Intent.createChooser(intent, "Select Video"),…
Prashant
  • 1,593
  • 1
  • 17
  • 32
22
votes
6 answers

How to Copy Image File from Gallery to another folder programmatically in Android

I want to pick image from gallery and copy it in to other folder in SDCard. Code to Pick Image from Gallery Intent photoPickerIntent = new Intent(Intent.ACTION_PICK); photoPickerIntent.setType("image/*"); …
22
votes
2 answers

Android gallery cannot combine custom title

this is my code and I am trying to open gallery.. I got error as stated above import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import android.os.Bundle; import android.util.Base64; import…
user903772
  • 1,554
  • 5
  • 32
  • 55
22
votes
5 answers

Android - Save images in an specific folder

I need to save the pictures taken with my app in an specific folder. I've read many solutions to this problem but I couldn't make any of them work so I ask for help. MainActivity.java public void onClick(View v) { Intent camera = new Intent( …
22
votes
9 answers

android- open gallery and choose image and video

In my project I want to open a gallery on a button click and should be able to pick image or video to get path of them. Intent i = new Intent(Intent.ACTION_PICK,…
stack
  • 951
  • 3
  • 9
  • 23
21
votes
2 answers

How to access an image from the phone's photo gallery?

By any chance, does anyone know how to access the phone's photo gallery? I am making an application that takes a picture of a plant leaf and analyzes the image to determine whether or not it is determine. We were hoping that we could give the user…
Young-Hun Kim
  • 233
  • 1
  • 3
  • 8
20
votes
5 answers

Permission denied : opening provider com.google.android.apps.photos.contentprovider.MediaContentProvider that is not exported from uid

My app is crashing only in android >= 6.0 (marshmallow) when I try to access a photo URI stored previously in SharedPreferences. Though the image is retrieved for the first time without any error. I am using targetSdkVersion 22 so that I don't need…
19
votes
2 answers

Picking an image file from Gallery using FileProvider

Compiling for Android N I've faced an issue of FileProvider. I need to let user to pick image from gallery/take picture with camera then crop it to square. I've managed to implement a FileProvider for taking image with camera, but I have serious…
Evgeniy Mishustin
  • 3,343
  • 3
  • 42
  • 81
18
votes
6 answers

Intent for selecting wallpaper with wallpaper region highlighting

I would like to know if it's possible to create an Intent that makes the gallery cropper show wallpaper highlighting. This feature has been introduced in Honeycomb. To get an idea of what I'm looking for have a look at the tablet on the image (the…
Thomas
  • 1,508
  • 2
  • 22
  • 35
17
votes
5 answers

how to hide images from android gallery

One part of my current project is downloading images from URL then saving to SDCard. But the problem is all of saved images in sdcard is displayed in android gallery page. What I want is "I don't want all of my saved images in android gallery."
PPShein
  • 13,309
  • 42
  • 142
  • 227
16
votes
10 answers

How to pick image for crop from camera or gallery in Android 7.0?

Pick image for crop from gallery and camera it's done for below Android 7.0 but in Android Nought it crashes in camera. I use fileprovider for it but doesn't work. MainActivity.java public class MainActivity extends AppCompatActivity implements…
Shweta Chauhan
  • 6,739
  • 6
  • 37
  • 57
15
votes
3 answers

HTML File Upload Doesn't Show Gallery on Android

I'd like my PHP app to accept a photo chosen from a mobile user's gallery. I'm testing on Android 4.4.4 using Chrome. This is my form:
Jared
  • 303
  • 1
  • 2
  • 10
14
votes
4 answers

Android READ_EXTERNAL_STORAGE permission not working

I'm trying to create a simple app that can get an image from the Gallery app and display it on an imageButton. I'm testing with API 21 on a phone running Android 5.0.1. Unfortunately, no matter what I try I keep getting a security error - even when…
13
votes
3 answers

Android: .nomedia is ignored, images still appear on the gallery

I'm building an application which download images from the web and store them into my SDCard, in order to make them invisible in the gallery I put this line to generate a .nomedia file: FileWriter f = new…
hectichavana
  • 1,436
  • 13
  • 41
  • 71
13
votes
3 answers

Camera intent/Activity - avoid saving to gallery

I am using the Camera Activity to capture the picture. I call it with the MediaStore.EXTRA_OUTPUT extra parameter. The image is correctly saved to provided path, put it is saved also to the gallery folder, so I can view the image in "Gallery"…
STeN
  • 6,262
  • 22
  • 80
  • 125
1
2
3
78 79