You can use the camera class to take a picture. There is a detailed explanation on how to use it here:
To take pictures using Camera class, do the following steps:
- Obtain an instance of
Camera from open(int).
- Get existing (default) settings with
getParameters().
- If necessary, modify the returned Camera.Parameters object and call
setParameters(Camera.Parameters).
- If desired, call
setDisplayOrientation(int).
- Important: Pass a fully initialized SurfaceHolder to
setPreviewDisplay(SurfaceHolder). Without a surface, the camera will be unable to start the preview.
- Important: Call
startPreview() to start updating the preview surface. Preview must be started before you can take a picture.
- When you want, call
takePicture(Camera.ShutterCallback, Camera.PictureCallback, Camera.PictureCallback, Camera.PictureCallback) to capture a photo. Wait for the callbacks to provide the actual image data.
- After taking a picture, preview display will have stopped. To take more photos, call
startPreview() again first.
- Call
stopPreview() to stop updating the preview surface.
- Important: Call release() to release the camera for use by other applications. Applications should release the camera immediately in
onPause() (and re-open() it in onResume()).
takePicuture will give you a jpeg image and then you can add your watermark. For that look into Canvas.drawBitmap with alpha channel.