title: Custom widgets to pick image from gallery or camera
body: <p>i'm trying to create a custom widget that allow my users to select an image from the gallery or from the camera. This custom widget is add it dinamically to a form. All examples that i saw, all of them the class extends from Activity, so they can use onActivityResult override method, but my class extends from LinearLayout.</p>
  
  <p>Theres's any way to use an image picker without using onActivityResult method?</p>
  
  <p>Thanks for your help.</p>