The android video app enabling record button tutorial describes the how to create an on click listener for the ImageButton view. And then how to change the image to a red icon for recording and then back to a green icon to indicate that recording is available. Get Code The code to start this tutorial is […]

Read more

The android video app starting preview display tutorial describes the steps involved to get the preview screen running on the android camera2 video app. Get Code The code to start this tutorial is on github here https://github.com/mobapptuts/android_camera2_api_video_app.git Tag camera2-video-preview-display or you can run this command git clone https://github.com/mobapptuts/android_camera2_api_video_app.git –branch camera2-video-preview-display Steps Create the CameraRequest Builder member private CaptureRequest.Builder mCaptureRequestBuilder; […]

Read more

The android video app connect camera device tutorial describes how to make a connection to the device’s camera. Patch for Manifest.permission.CAMERA issus For those of you who have been having an issue with the Manifest.permission.CAMERA a patch is provided containing the fix. I’ve provided the patch at github here . And it just needs to be saved to […]

Read more

The android video app setting preview size tutorial describes how to select the preview dimensions from the values provided from the android camera2 api StreamConfigurationMap. Get Code The code to start this tutorial is on github here https://github.com/mobapptuts/android_camera2_api_video_app.git Tag camera2-video-preview-size or you can run this command git https://github.com/mobapptuts/android_camera2_api_video_app.git clone –branch camera2-video-preview-size Steps Create a method for comparing […]

Read more

The android video app preview orientation tutorial describes how to adjust the TextureView width & height dimensions so that they can be compared against the values supplied from the camera sensor. Get Code The code to start this tutorial is on github here https://github.com/mobapptuts/android_camera2_api_video_app.git Tag camera2-video-preview-orientation or you can run this command git clone https://github.com/mobapptuts/android_camera2_api_video_app.git –branch camera2-video-preview-orientation Steps […]

Read more

The android video app get camera device id tutorial describes how to select the camera on the device that you would want to use for your android video application. Normal in smartphone devices you would expect to see two camera’s one front facing normally used for selfie mode and a main rear facing camera. In this […]

Read more

The android video app setup background thread tutorial describes how to create an android handler and thread for that handler. It is important to setup a background handler to remove time consuming tasks from the main UI thread. Many of the api’s provided by android camera2 provide support for a background thread handler. So it’s […]

Read more

The android video app camera device setup tutorial describes how to create and initialise the android  camera2 api CameraDevice which is a representation of the actual device’s camera. This is one of the steps that has to be done before a connection to the camera can be made. Get Code The code to start this tutorial […]

Read more

The android video app surface texture listener tutorial describes how setup a listener for the TextureView which get’s called once the TextureView is available. And once the android TextureView is available we will be able to retrieve its width & height dimensions which are required to calculate the application’s preview and video resolutions. Get Code The code relating […]

Read more

The making android video app full screen tutorial describes how to use Kitkat’s immersive full-screen mode to create a full screen app. The android video app full screens tutorial comes recommended for android beginners and people new to android. Get Code The code relating to this tutorial can be found here https://github.com/mobapptuts/android_camera2_api_video_app.git Tag camera2-video-full-screen or you […]

Read more