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

In 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