This sample Android app demonstrates
using ACTION_IMAGE_CAPTURE, employing the legacy approach of using a file: Uri for EXTRA_OUTPUT
This app is covered in the chapter on working with third-party camera code in The Busy Coder's Guide to Android Development.