0

i m working on project and requirements of the project is to do some action if camera takes any picture any suggestions on how can i do this......

this issue is solvable but it need your help so please give any suggestions http://developer.android.com/reference/android/hardware/Camera.html#ACTION_NEW_PICTURE this link is not have any help about my question

4

1 回答 1

0

利用

Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
intent.putExtra(MediaStore.EXTRA_OUTPUT, pathToSave);
startActivityForResult(intent, TAKE_PIC);

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {

    switch (requestCode) {
    case TAKE_PIC:
            //Do with the "pathToSave" what you want
于 2012-07-02T13:59:43.437 回答