build Image Capture Intent - Android Intent

Android examples for Intent:Image Capture

Description

build Image Capture Intent

Demo Code


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

import android.net.Uri;
import android.provider.MediaStore;

public class Main {
    public static Intent buildCaptureIntent(Uri uri) {
        Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
        intent.putExtra(MediaStore.EXTRA_OUTPUT, uri);
        return intent;
    }/*w ww.j a va  2  s . c o  m*/
}

Related Tutorials