title: How to make intent chooser for camera or gallery application in android like whatsapp editprofile?
body: <p>I am developing an application where i need to have a dialog choose for uploading image from gallery or camera. I have found kind of solution here <a href="https://stackoverflow.com/questions/10165302/dialog-to-pick-image-from-gallery-or-from-camera"></a><a href="https://stackoverflow.com/questions/10165302/dialog-to-pick-image-from-gallery-or-from-camera">Dialog to pick image from gallery or from camera</a> but the problem is here there is clash in comparing which action is chosen by user. </p>
  
  <p>I would like to know if i can modify in this code and get some result to differentiate either gallery or camera is chosen and then apply action.</p>