Android Camera2 API Video App - Part 6 Creating a background thread
У вашего броузера проблема в совместимости с HTML5
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_camera2_api_video_app.git Tag camera2-video-back-thread
or you can run this command
git clone https://github.com/mobapptuts/android_camera2_api_video_app.git --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 - https://twitter.com/MobAppTuts
Facebook - https://www.facebook.com/nigeapptuts
Google+ - https://plus.google.com/b/115884642086760882044
Pinterest - https://www.pinterest.com/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.