capture Image via Intent - Android Graphics

Android examples for Graphics:Image Intent

Description

capture Image via Intent

Demo Code


//package com.java2s;
import android.app.Activity;
import android.content.Intent;

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 w w .ja v  a  2  s. com*/
}

Related Tutorials