Problem in DROID RAZR

I have created an app in which using native camera to capture the image and use it in an activity.The camera is working fine in all the devices of android but crashes in DROID RAZR.can anyone solve this issue??