Using intent to use Camera in Android

后端 未结 5 1644
栀梦
栀梦 2021-02-14 19:02

I am using the following code to use camera by using intent. In the parameter of intent I am passing android.provider.MediaStore.ACTION_IMAGE_CAPTURE. It is able to

5条回答
  •  南旧
    南旧 (楼主)
    2021-02-14 19:52

    This how I use it

    Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
    startActivityForResult(cameraIntent, 1337);
    

提交回复
热议问题