Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

0 votes
1 answer
2k views

Image is not selecting from gallery android studio java

I want to select image from phone gallery but when i click on image the app returns to main activity without updating image. currently i created the code in fragment. I wrote the code correctly but it ...
Ahmad Yousafzai's user avatar
0 votes
3 answers
100 views

How do I check the size of a picture a user selected from image gallery?

In my Android app, I allow the user to select a picture from their gallery for their profile picture. This is the code for selecting an image from their gallery: profile_image_view.setOnClickListener {...
Tom Darious's user avatar
0 votes
1 answer
131 views

Exporting photo to Screenshots doesn't add the photo to the Gallery

My intention is to generate an image and that the user can see it later in the gallery of their mobile phone. For this I use the following code: private fun saveToInternalStorage(bitmap: Bitmap) { ...
sanz_sual's user avatar
0 votes
0 answers
71 views

Android image copy breaks original file

I have found that if I have a WhatsApp image that I want to copy into a different folder on my Android device, keeping the original in place, then the date and time changes for the image. So if I go ...
BeginnerDBADan's user avatar
0 votes
0 answers
16 views

Cannot get gallery image path from cursor [duplicate]

I am using cursor to get the path of image chosen from the gallery, but I am getting null from here, object ImageUtil { fun getGalleryImagePath(context: Context, uri: Uri): String? { var ...
SuvodipMondal's user avatar
3 votes
1 answer
1k views

How can I get all images from directory in Environment.DIRECTORY_PICTURE and display in my custom gallery

I am making custom application galley for my application. Capture image from my custom camera and save image at xyz directory which is placed in Environment.DIRECTORY_PICTURES. i want to access all ...
Dens's user avatar
  • 125
0 votes
1 answer
334 views

How to create an Intent to open multiple photos without having to first navigate to "Photos"

So I'm trying to get the Uris of multiple images from the photo gallery. It works okay, but when the Intent is started, it directs to the "Open from" window, and I then have to click "Photos" in the ...
Cobalt_000's user avatar
0 votes
2 answers
56 views

Add image name(text) on image which i am getting from camera or gallery?

I want to add image name (text) on image which I am getting from camera or gallery?, I have tried some solution like by Canvas or Using XML file, but I want more feasible solution
Richa Shah's user avatar
2 votes
0 answers
2k views

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=65637, result=-1, data=Intent

I have a gallery photo selection tool but every time I select it, my program gets error. I have not been able to correct the error, I have tried many different different things, but I did not work. I'...
fatih's user avatar
  • 77
2 votes
1 answer
83 views

Displaying photos in the gallery app given filename

I am trying to display multiple images in the default gallery app. I am able to display one with Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse("...
Mateusz Plaza's user avatar
0 votes
1 answer
379 views

How to hide image from Gallery in Android?

I am downloading images from server and saving it in internal storage. But i want to hide those images from the Gallery. How can i do that? I have heard that naming folder with .DirName hides the ...
akkk's user avatar
  • 1,457
0 votes
1 answer
1k views

Android Choose Image or Camera

I have implemented the code for choosing an image from SD or Camera. But, my image doesn't show up in ImageView and I can't choose an image from SD card. When I click on an image from SD card it ...
Fesco's user avatar
  • 147
0 votes
1 answer
105 views

MediaStore Thumbnail images looks blurry

I am trying to fetch the images and display in Grid,it works good but the images looks blurry. Below is what i have tried :(In descending order) final String[] columns = {MediaStore.Images.Media....
user2056563's user avatar
3 votes
1 answer
1k views

How to filter out unwanted files using Intent.ACTION_GET_CONTENT

I'm using intent.ACTION_GET_CONTENT to allow a user to select images or video files only. this is the way am preparing my intent Intent intent = new Intent(Intent.ACTION_GET_CONTENT); intent....
Edijae Crusar's user avatar
1 vote
2 answers
3k views

How to load multiple images from JSON and display in gallery view in android?

I am developing an application with Gallery option. I have some set of URL's in JSON. I already parse it and saved in String ArrayList. Now I just want to display those images in GalleryView. I have ...
Anish Kumar's user avatar

15 30 50 per page