Sample for taking photo using Camera Android API and storing it into external storage.
TakeAndSavePhoto is hosted in the following web site
https://github.com/nichtemna/TakeAndSavePhoto
If you think the Android project TakeAndSavePhoto listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
The following table is the detailed list of TakeAndSavePhoto.
Item | Value |
---|---|
Java File Count | 8 |
Supported screen sizes | [mdpi, hdpi, xhdpi] |
Target SDK Version | 17 |
Minimum SDK Version | 9 |
Activity Count | 1 |
Fragment Count | 3 |
jar files used | android-support-v4.jar |
Required Permissions | android.hardware.camera.autofocus android.permission.CAMERA android.permission.WRITE_EXTERNAL_STORAGE |
There are 9 image files in TakeAndSavePhoto. The names of the image files are listed as follows.
ic_camera.png ic_chooser.png ic_file.png ic_folder.png ic_gallery.png ic_left.png ic_remove.png ic_right.png ic_switch_camera.png
The following screenshort is generated from the image listed above.
TakeAndSavePhoto has the following Java source files.
com.nichtemna.takeandsavephoto.CameraFragment.java com.nichtemna.takeandsavephoto.Extras.java com.nichtemna.takeandsavephoto.FragmentToggler.java com.nichtemna.takeandsavephoto.ImageUtils.java com.nichtemna.takeandsavephoto.PhotoActivity.java com.nichtemna.takeandsavephoto.PhotoFragment.java com.nichtemna.takeandsavephoto.Preview.java com.nichtemna.takeandsavephoto.ViewPagerAdapter.java