Yesterday I learned how to look up image in a gallery and copy it into my app. Today I have to learn to take a photo instead of using an existing one.
1. Gist of it is explained in android doc
2. Code from http://developer.android.com/training/camera/photobasics.html starts camera and allows to take a picture. This is great. How do I get the image into my app?
Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
3. onActionResult added code
Bundle extras = imageReturnedIntent.getExtras();
Bitmap yourSelectedImage = (Bitmap) extras.get(“data”);
This is working! Yey. Image is saved in a gallery. I don’t need it to be there but it’s ok.