Is there a standard way to call dialog box with choose either to pick an image from the camera or to get from gallery (like in build-in phone book or Skype)?
I've taken a look at this but the code opens gallery without suggesting to pick it from camera.
Device: Samsung Galaxy Tab
Android: 2.3.3
Best Answer
The code below can be used for taking a photo and for picking a photo. Just show a dialog with two options and upon selection, use the appropriate code.
To take picture from camera:
To pick photo from gallery:
onActivityResult
code:Finally add this permission in the manifest file: