1

I am using default image picker to pick photos. I installed dropbox app in my phone.So it shows up together with gallery and photo.Is there way to hide dropbox showing in image picker?I also tried this but it doesn't work for my app.

![Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
                    intent.setType("image/*");
                    intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);

                    Intent chooser = Intent.createChooser(intent, "Choose a Picture");
                    ((Activity) context).startActivityForResult(chooser, photoGalleryCode);]

android image picker showing dropbox

Min

Community
  • 1
  • 1
meazuri
  • 73
  • 1
  • 11
  • I looked to the [sourcecode of the imagepicker](https://github.com/CyanogenMod/android_packages_apps_Gallery2/blob/cm-12.0/src/com/android/gallery3d/app/GalleryActivity.java) but didn't find a quick answer. Maybe you have more luck ..... – k3b Jun 24 '15 at 11:43

1 Answers1

0

just replace Intent.ACTION_GET_CONTENT with Intent.ACTION_PICK

Rehan
  • 1
  • 1