I am creating an app, in which I am setting a profile image and cover image ,so on setting profile image I want to open the front camera by default using intent
.
I am using
pictureIntent.putExtra("android.intent.extras.CAMERA_FACING",1);
Its working on Sony but when I tested on a Samsung Galaxy J4 ,it's opening the back camera. I searched and found somewhere that for Samsung one should use value 2.
However it's not working.
I want to do this using intent only.
Does anyone have an idea about it?