cwac-camera is a discontinued and deprecated library to take pictures with Android’s Camera API.
As of December 2014, cwac-camera (by user commonsware) is discontinued and deprecated.
Taking pictures or videos using a third-party app is fairly straightforward, using ACTION_IMAGE_CAPTURE or ACTION_VIDEO_CAPTURE. However, you as the developer have little control over what happens with the image or video, other than indicating where the result gets stored. Plus, different camera apps have slightly different behavior, meaning that you are prone to getting inconsistent results.