This code explain how to make your custom camera if you want to make special operation on images instead of using the built in camera  app in android