In this tutorial we focus on implementing the android camera2 api update gallery so that the latest captured images will be displayed in the gallery. This is slightly complicated for CameraCaptureSession callback is currently being executed in the background thread handler therefore making the RecyclerView and Adapter members not accessible. The quick solution to this […]

Read more

This tutorial describes how to create an android recyclerview grid gallery by converting the original single column gallery to multiple columns. CODE AVAILABLE ON GITHUB You can get the code from here and then you need to Tag multi-column-gallery or else you can run this command git clone --branch multi-column-gallery https://github.com/mobapptuts/recyclerview_image_gallery.git CODE SAMPLES activity_camara_intent.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" […]

Read more

This android tutorial describes the steps involved for the android camera2 api capture still image. Get Code You can get it from here https://github.com/mobapptuts/recyclerview_image_gallery.git Tag camera2-still-capture or else run this command git clone —branch camera2-still-capture https://github.com/mobapptuts/recyclerview_image_gallery.git Code Samples Clean up the ImageReader resource when the application is closed private void closeCamera() { if(mCameraCaptureSession != null) […]

Read more

This tutorial describes setting up the android camera2 api image reader which provides the surface for capturing a still image. Get Code You can get it from here https://github.com/mobapptuts/recyclerview_image_gallery.git Tag camera2-imagereader or else run this command git clone —branch camera2-imagereader https://github.com/mobapptuts/recyclerview_image_gallery.git Code Sampes Create File, ImageReader, ImageReader.OnAvailableListener & ImageSaver members private static File mImageFile; private […]

Read more

This android tutorial describes how to obtain the android camera2 api focus lock, which is required prior to capturing a still image. GET CODE You can get it from here https://github.com/mobapptuts/recyclerview_image_gallery.git Tag camera2-lock-focus or else run this command git clone —branch camera2-lock-focus https://github.com/mobapptuts/recyclerview_image_gallery.git CODE SAMPLES Add some samples to reference the various camera states private […]

Read more

This android camera2 api tutorial explain how to move time consuming tasks off the main ui thread to the android camera2 api background handler. DOWNLOAD THE CODE The code samples are now provided on github here https://github.com/mobapptuts/recyclerview_image_gallery.git Tag camera2-handler or else run this command git clone —branch camera2-handler https://github.com/mobapptuts/recyclerview_image_gallery.git CODE SAMPLES Creating the HandlerThread & […]

Read more