Skip to main content

Posts

Showing posts with the label capture image using intent

Take photo in android programatically

Capture image using camera in Android/How to take photo in android/Camera API in android/Camera using intent/Capture image using intent in android Using camera API, you can capture images, change image capturing settings, you can start/stop preview and retrieve frames for encoding videos. You can start existing camera application via Intent or you can directly integrate camera using camera API In order to access camera of device, you need to set camera permission in your android manifest file. To declare camera features, also be sure to include <uses-feature> CameraSampleActivity.java package com.sample; import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import android.os.Bundle; import android.view.View ; import android.widget.ImageView; public class CameraSampleActivity extends Activity {         private static final int CAMERA_REQUEST = 1888;  ...