I have a really strange problem. The following code I have is used to take a picture on button click. It works properly on Jelly Bean phones, but not on Kitkat:
Add uses-feature in your manifest file :
uses-feature
and check this link. It might be help you.