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
5
votes
2 answers

Select docx, doc, rtf, pdf type of file from SD card or with any application in android

Currently I am trying to select particular type of file from SD card or with any application but I failed, my code is as follows, Intent intent; if (Build.VERSION.SDK_INT > Build.VERSION_CODES.KITKAT) intent = new…
5
votes
3 answers

android circular gallery?

I am a newbie to android development.Now i would like to do gallery view as circular like image as below.The things is that i want to enlarge the center image when user scroll from left to right and right to left. Is there any tutorials for that…
geekmyo
  • 179
  • 4
  • 19
5
votes
2 answers

Android 6 runtime permission for accessing gallery

I got questions about Android 6 (Marshmallow) runtime permission. If user wants to pick a photo from gallery, should we ask for READ_EXTERNAL_STORAGE permission? Seems like I could access the gallery even though I turn off the Storage permission.
5
votes
3 answers

Copy image file from Android internal storage to gallery

I got a camera application where, after the user takes an image, I save it to the internal storage in a directory I have made. All that works fine, the image gets saved there and I can load it and show afterwards, but I'm having trouble saving the…
TP89
  • 106
  • 1
  • 7
5
votes
2 answers

Save gif to android gallery

Using https://github.com/koush/ion image Loader to display gif files into ImageView I save the jpg images into gallery by this code MediaStore.Images.Media.insertImage( getActivity().getContentResolver(),…
Jehad
  • 472
  • 2
  • 10
  • 24
5
votes
1 answer

Android 4.4.2 - camera uri return null and also cropping feature not working?

I am trying to click image from camera and show into imageview but onactivityresult URI return null. BUt below code runs fine on JellyBean , ICS with cropping feature . Calling intent Intent pickIntent = new Intent(); …
duggu
  • 37,851
  • 12
  • 116
  • 113
5
votes
2 answers

Receive multiple Images from gallery in the onActivityResult method

I am trying to get multiple images from gallery in my app's onActivity Result method but I am not able to create a cursor for the same . And if I do not use cursor than I am unable to get the Uris of all the images. If I have to select a single…
Puneetr90
  • 199
  • 1
  • 6
  • 18
5
votes
1 answer

how to synchronize file rename/deletion with the file system

While working with android file system, I could notice an issue that I can't really explain to myself. Changing an image by using File.renameTo() or File.delete() (no matter if the image has any Exifdata) results in the following (the methods…
Droidman
  • 11,485
  • 17
  • 93
  • 141
5
votes
3 answers

Gallery: Effect in item selected

I need to have an scroll with items together, and the selected item should expand a part down. I am currently using a Gallery (I tried with viewflow and viewpager, but the items have much space between them), but I need to know how can I do this…
SolArabehety
  • 8,467
  • 5
  • 38
  • 42
5
votes
1 answer

infinite gallery scrolling with determined image position

One of my app activity is called DayGallery activity (infinite images gallery) , when i open the gallery, it show first image randomly , and not start with first image i specified in DayGallery activity code . what am trying to achieve is: FIRST:…
Android Stack
  • 4,314
  • 6
  • 31
  • 49
5
votes
1 answer

CoverFlow which extends Gallery (deprecated isn't working correctly in >4.0 devices)

I'm using this class to achieve a CoverFlow in my app: public class CoverFlow extends Gallery { /** * Graphics Camera used for transforming the matrix of ImageViews */ private Camera mCamera = new Camera(); /** * The maximum angle the Child…
Reinherd
  • 5,476
  • 7
  • 51
  • 88
5
votes
1 answer

How to restrict a user to pick only JPG images from the gallery?

In my application I have an option which allows a user to pick an image from gallery and use it in the application. However I would want to restrict the user to select only images with .jpg extension. How do I achieve that? So far I've tried the…
Skynet
  • 7,820
  • 5
  • 44
  • 80
5
votes
0 answers

how to set intent-filter only accept jpg?

I want my Activity could accept jpg by Gallery. so i set Intent picker = new Intent (Intent.ACTION_PICK); picker.setType ("image/jpeg"); But the gallery still shows images of all formats . how can I let the gallery only shows what I need? Whether I…
GeminiYellow
  • 1,016
  • 2
  • 12
  • 34
5
votes
3 answers

ViewPager + recycling views?

I'd like to create a gallery of photos that swipe left and right. At first I took a look at Gallery, but it's marked as deprecated. http://developer.android.com/reference/android/widget/Gallery.html We're told to try ViewPager instead. But the…
user291701
  • 38,411
  • 72
  • 187
  • 285
5
votes
1 answer

getRealPathFromURI() not working with ICS & Picasa based images

I'm trying to get the local path of a image in order to upload it to a server. When using pre ICS it would get a standard path within the android device via getRealPathFromURI(theURI) However with ICS URI will contain a uriString as something like…
wired00
  • 13,930
  • 7
  • 70
  • 73