Android Camera2 API Video App - Part 4 Creating the camera device

preview_player
Показать описание
Android tutorial series which describes how to create an android video application using the android camera2 API.

Part 4 describes how to create the android camera2 api CameraDevice which must be done before opening a connection to the camera.

Github details:

or you can run this command

In this tutorial we will cover:
- Creating members for the CameraDevice & CameraDevice.StateCallback
- Initialising the mCameraDevice in the onOpened method
- Cleaning up the camera resources in the onDisconnected & onError methods
- Creating a closeCamera method to clean up the CameraDevice resources
- Creating the activity onPause method

API's covered
- CameraDevice
- CameraDevice.StateCallback

For much more information checkout

The previous tutorials were aimed at beginners to android but over time have been getting more complex as the original camera_intent app has developed.
This tutorial series is more aimed towards the intermediate developers thought for those who have been following the previous tutorial series, feel free to watch this android performance series.

Android studio (1.5) is the editor of choice (IDE) for this tutorial series.

This tutorial series is the start of what I expect to be many so I encourage comments and feedback to improve the quality and viewing experience.
Рекомендации по теме
Комментарии
Автор

I have literally searched the entire net for a detailed tutorial on a custom video app and this is the only useful playlist I found. Thanks a ton!!

akarshmishra
Автор

You don't need to ask for like
& subscribe ....you deserve it

jayedm
Автор

thank you so much your tutorials solved almost 90%of my problem while building a camera app

vipingupta
Автор

GREAT MAN RESPECT FOR A REAL TEACHER VERY HELPFUL GOD BLESS YOU... THANK YOU VERY MUCH SIR

jayedm
Автор

Your tutorials are really helpful. Thanks for all your hard work and sharing this to the community.

maverick
Автор

Thank you very much for all your effort. You've done very helpful tutorials.

MihaelaStancheva
Автор

this tut is OK for API lvl >= 21. Some of functions won't work below API 21 :(

kickman
Автор

Maybe onPause method will be correct:
@Override
protected void onPause() {
super.onPause();
closeCamera();
}

Tomaskocz
visit shbcf.ru