Android Camera : data intent returns null

前端 未结 11 1600
不知归路
不知归路 2020-11-22 16:20

I have an android application which contains multiple activities.

In one of them I\'m using a button which will call the device camera :

public void         


        
11条回答
  •  悲哀的现实
    2020-11-22 17:03

    To Access the Camera and take pictures and set ImageView on Android

    You have to use Uri file = Uri.fromFile(getOutputMediaFile()); for marshmallow.

    Use below link to get path

    https://androidkennel.org/android-camera-access-tutorial/

提交回复
热议问题