In the Intent.ACTION_PICK screen can I listen for longClick?

All your problems with Audio, Video and Images.

In the Intent.ACTION_PICK screen can I listen for longClick?

Postby Arcantos » Fri Jan 29, 2010 12:34 am

In my app i let the user select one image from the media gallery. To do this i use the Intent.ACTION_PICK.

Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
startActivityForResult(intent, IMAGE_PICK);

The app works mostly fine, the users can select an image and the uri correctly.

The matter is in the gallery. If the user does a tap on an image all goes well, image is selected and uri returned.
But if the user does a long click on an image, be it accident or on purpose, the phone vibrates a split sec, the image is focused, and then nothing happens.
I understand on the formal gallery app this brings up a menu, but in this case it does nothing, and it can be confusing to users, to think they tapped and see the app do nothing.

So the question is, can i do anything to change the behavior of the long click in that screen? Like override the OnLongClick or set an OnLongClickListener or something?

Thanks in advance, best regards.
Once Poster
Once Poster
Posts: 1
Joined: Fri Jan 29, 2010 12:09 am
Location: Computer Engineer


Re: In the Intent.ACTION_PICK screen can I listen for longCl

Postby Medvedica » Thu Aug 22, 2013 6:34 pm

Thank you for good communication.
Junior Developer
Junior Developer
Posts: 16
Joined: Thu Aug 22, 2013 6:28 pm


Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 6 guests