Taking Picture in App

Sometime in our app we want to take picture for some feature of our app. We can take picture in 2 ways in android: