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 image viewer create custom image view tutorial describes how to create your own ImageView based on the View class. The reason for creating a custom view class is because of the flexibility offered in a custom class of this type. For example for pinch zoom on a image a number of gestures will […]

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 image viewer adding long click press tutorial is the sixth part to the android image viewer tutorial series. This is a continuation of the android image view series where we will now be adding more advanced features to the android image viewer. The first feature we will be focusing on is pinch zoom. To make […]

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 image viewer using Glide library tutorial is the fifth part to the android image viewer tutorial series. There are a couple of major issues with the android image viewer application. One is that the bitmap is being loaded on the main UI thread which will affect and delay the frames being rendered to the display. And […]

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