I have an application with a button, when clicked it should launch camera. Developer guide mentions two ways to do it. But I am not able to decide which one is best suitable for me and what is the difference between them.
If possible please mention why android has two ways to work with cameras?
I have an application with a button, when clicked it should launch camera. Developer
Share
Passing intent will work for you.
Try this code in your onClicklistener.
The default android camera has the ok and cancel button. So you don’t have to worry for that.