The android video app creating file storage tutorial describes the how to create the video folder and it’s files. Support for android marshmallow write external storage runtime permissions is also added. 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-storage or you can run this command git clone https://github.com/mobapptuts/android_camera2_api_video_app.git –branch camera2-video-storage Steps Add […]
Read moreThe 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 moreThe 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 moreThe 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 moreThe 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 moreThe 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 moreThe 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 moreThe 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 moreThe 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 moreThe 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
Recent Comments