I am new to android devlopement. I created a simple demo for picking a 1 pic from camera & one from gallery,& set them to imageview..
As well as concern about gallery, all works properly. But when i click on camera button,it doesn't open camera.. This issue i facing in only marshmallow devices. I search alot about requestpermissions() & onRequestPermissionResult() method. But i not able to understand.
So i want to know how to get permission for accessing a camera specially for android m devices?
Here is the code for both method relating to camera permission.. [call of requestpermissions() method][1]