capture Image vis Intent - Android android.graphics

Android examples for android.graphics:Image Load Save

Description

capture Image vis Intent

Demo Code

import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.provider.MediaStore;

public class Main{

    public static void captureImage(Activity activity,
            int CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE) {
        Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
        activity.startActivityForResult(intent,
                CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE);
    }/*from  w ww . j a v  a 2  s  .c o  m*/

}

Related Tutorials