Pergunta

I'm new to Android development.

I have an application that allows the user to select images. I'm using an Button. When the user clicks on the Button, I'd like to allow them the option to a)select the image from the gallery, or b)use the camera to capture an image. Please help me by suggestion or any article.

thanx

Foi útil?

Solução

  1. Read following article which explains how to capture image from Camera: Capture camera image from your app

For getting images from gallery, you have to use different intent action defined in Media class.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top