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 moreThis 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 moreThis 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 moreThis 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 moreThis 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 moreThis 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 moreThe android camera2 api surface preview tutorial completes the setup for the preview display which should now be displaying on the device CODE AVAILABLE ON GITHUB You can get the code from here and then you will need to Tag createcamerapreviewsession or else you can run this command git clone --branch createcamerapreviewsession https://github.com/mobapptuts/recyclerview_image_gallery.git CODE SAMPLES CamaraIntentActivity Member Variables […]
Read moreWe return to the origins of this tutorial series and call the android picasso image resize feature. If this is not used picasso will load the full images. Which will have an obvious impact on the scrolling speed of the android recyclerview image gallery. CODE AVAILABLE ON GITHUB You can download the code from github […]
Read morePart 3 of the camera2 API tutorial series which concentrates opening the android camera2 api cameradevice. This is needed before CaptureRequests & CameraCaptureSessions can be started. Code available on github You can download the code by cloning this url from github https://github.com/mobapptuts/recyclerview_image_gallery.git and the code changes are under the Tag “cameradevice” Or else you can run this […]
Read moreIn part 7 of the android performance optimisations for recyclerview image galleries we will be using android glide image library to compare image gallery scrolling performance against the other solutions in this tutorial series. ADD GRADLE DEPENDENCY FOR GLIDE dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:recyclerview-v7:22.0.+' compile 'com.github.bumptech.glide:glide:3.6.0' compile 'com.squareup.picasso:picasso:2.5.2' } CALL GLIDE […]
Read more
Recent Comments