Android: Getting file name from camera?

前端 未结 3 797
耶瑟儿~
耶瑟儿~ 2020-12-28 23:31

I ran into an issue with something that I am probably just overlooking.

I want to take a picture from the surface preview of the camera, and save it to the sd_

3条回答
  •  轮回少年
    2020-12-29 00:11

    This was resolved by implementing PictureCallback via a ImageCaptureCallback class, and Overriding the onPictureTaken where the file was being written via a file output stream. All you had to do was change the fileoutput stream to the filename you want.

提交回复
热议问题