Building a custom camera for Android
Switch branches/tags
2.1_asking_for_camera_permission_end 2.1_asking_for_camera_permission_start 2.2_inflating_the_camera_preview_fragment_end 2.2_inflating_the_camera_preview_fragment_start 2.3_building_a_custom_textureview_end 2.3_building_a_custom_textureview_start 2.4_display_a_camera_preview_on_a_textureview_end 2.4_display_a_camera_preview_on_a_textureview_start 2.5_accounting_for_strange_device_displays_end 2.5_accounting_for_strange_device_displays_start 3.1_capturing_a_stillshot_end 3.1_capturing_a_stillshot_start 3.2_saving_a_captured_image_to_storage_end 3.2_saving_a_captured_image_to_storage_start 3.3_toggling_back_and_front_camera_use_end 3.3_toggling_back_and_front_camera_use_start 3.4_rotating_and_displaying_a_captured_image_end 3.4_rotating_and_displaying_a_captured_image_start 3.5_retaking_an_image_capture_end 3.5_retaking_an_image_capture_start 4.1_drawing_on_a_captured_imageview_end 4.1_drawing_on_a_captured_imageview_start 4.2_changing_the_pen_color_end 4.2_chaning_the_pen_color_start 4.3_changing_the_pen_size_end 4.3_changing_the_pen_size_start 4.4_saving_an_edited_image_end 4.4_saving_an_edited_image_start 5.1_overlaying_a_fragment_for_selecting_stickers_end 5.1_overlaying_a_fragment_for_selecting_stickers_start 5.2_adding_stickers_to_an_imageview_end 5.2_adding_stickers_to_an_imageview_start 5.3_dragging_stickers_on_an_imageview_end 5.3_dragging_stickers_on_an_imageview_start 5.4_resizing_stickers_on_an_imageview_end 5.4_resizing_stickers_on_an_imageview_start 5.5_removing_stickers_from_an_imageview_end 5.5_removing_stickers_from_an_imageview_start 6.1_zooming_the_camera_preview_end 6.1_zooming_the_camera_preview_start 6.2_zooming_with_weird_screen_sizes_end 6.2_zooming_with_weird_screen_sizes_start 6.3_capturing_images_after_zooming_end 6.3_capturing_images_after_zooming_start 6.4_manually_focusing_the_camera_preview_end 6.4_manually_focusing_the_camera_preview_start master starting_point
Nothing to show
Clone or download
Latest commit 4b1797c Dec 7, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea master Oct 30, 2018
app master Oct 30, 2018
gradle/wrapper master Oct 30, 2018
.gitignore first May 29, 2018
README.md Update README.md Dec 6, 2018
build.gradle master Oct 30, 2018
gradle.properties first May 29, 2018
gradlew first May 29, 2018
gradlew.bat first May 29, 2018
settings.gradle first May 29, 2018

README.md

Building a Custom Camera for Android

Get the course here.

Watch the Course Demo.

What you'll learn:

  1. Android's camera2 API
  2. Making full-screen camera previews
  3. Accommodating different screen sizes
  4. Capturing photos
  5. Drawing on photos
  6. Adding stickers
  7. Saving photos to internal storage

Submitting an Issue

Watch this video to learn about how to properly submit an issue.

Here is an example issue I made so you can get a good idea of what it should look like: Example

Link to the Phone Test: Phone Test

Phones with Known Issues

  1. Redmi 4X (santoni)

    See here for a workaround