Take and save picture on button press

后端 未结 2 881
死守一世寂寞
死守一世寂寞 2021-01-30 19:15

I\'m creating an Android application which uses user captured images as part of a larger process. So far my XML layout has a SurfaceView and Button inside a RelativeLayout. I\'v

2条回答
  •  野的像风
    2021-01-30 19:33

    Here is a sample application that handles the take-a-picture-and-save-it part. Auto-focus, clicky, Toast, and saving to the app-local file store vs. the SD card are left as exercises for the student. :-)

提交回复
热议问题