Here is my example code:
package newslab.video.server; import android.app.Activity; import android.hardware.Camera; import android.os.Bundle; import android
Dont forget to take the permission for using camera in Android Manifest file,
Also you have to take permission for storing images on SD Card,