Android Camera2 API Video App - Part 6 Creating a background thread

Опубликовано: 10 Октябрь 2024
на канале: Mobile Application Tutorials
15,349
169

Android tutorial series which describes how to create an android video application using the android camera2 API.

Part 6 describes how to create a background thread for removing time consuming tasks off the main UI thread.

Therefore improving performance and reducing any potential bottlenecks.


Check the accompanying website tutorial here: https://www.nigeapptuts.com/?p=515

Github details:

https://github.com/mobapptuts/android... Tag camera2-video-back-thread

or you can run this command

git clone https://github.com/mobapptuts/android... --branch camera2-video-back-thread


In this tutorial we will cover:
Creating the thread
Creating the handler for the thread
Starting the thread
Assigning the thread to a handler
Quitting the thread
Cleaning up the thread resources


API's covered
HandlerThread
Handler
HandlerThread.start
HandlerThread.getLooper
HandlerThread.quitSafely
HandlerThread.join


For much more information checkout
Website - https://www.nigeapptuts.com
Twitter -   / mobapptuts  
Facebook -   / nigeapptuts  
Google+ - https://plus.google.com/b/11588464208...
Pinterest -   / mobapptuts  

The previous tutorials were aimed at beginners to android but over time have been getting more complex as the original camera_intent app has developed.
This tutorial series is more aimed towards the intermediate developers thought for those who have been following the previous tutorial series, feel free to watch this android performance series.

Android studio (1.5) is the editor of choice (IDE) for this tutorial series.

This tutorial series is the start of what I expect to be many so I encourage comments and feedback to improve the quality and viewing experience.