当前位置: 动力学知识库 > 问答 > 编程问答 >

how to grab picture from camera in android?

问题描述:

I am creating an image editor android app. I need to grab the image captured by the camera on the app without it saving in a directory first. I am using this way to capture the image right now :

public void onClick(View v) {

Intent camera_intent = new Intent("android.media.action.IMAGE_CAPTURE");

startActivity (camera_intent);

}

A button invokes the intent and I then have to go to the directory and open the image from there. What can I do for it to not save in any directory unless explicitly asked by the user ?

分享给朋友:
您可能感兴趣的文章:
随机阅读: