android recycleView can also be used to display four videos

Recently, the company made a project, which requires that four-way video can be displayed. It would be very troublesome to use layout package. Later, under the leadership of the God, I learned that recycling view can be used, The specific requirements are as follows The specific requirements are ...

Posted on Sat, 02 May 2020 03:56:34 -0400 by wdsmith

How to realize seamless bitstream cutting in Android

Mode 1: 1. Generally, it is a switching mode. For example, when the system player switches the code stream, first Stop, then Create Player, then onPrepare, and then Start Mode 2: 2. In fact, there is also a seamless switching code stream. If it is a single instance player, click to switch the code stream without destroying the player, just paus ...

Posted on Fri, 24 Apr 2020 08:56:12 -0400 by ethosadvisory

Chapter 58. Photo function realization (learn Android from scratch)

Come from: http://blog.csdn.net/jianghuiquan/article/details/8569187 Android has two ways to take photos: one is to call the system's photo Intent directly, use onActivityResult to get picture resources or specify a picture path, and read the picture after the photo returns successfully; the other is to use Sur ...

Posted on Wed, 01 Apr 2020 15:23:34 -0400 by toxic_brain

Android horizontal and vertical screen switch stuck problem

Today, an android system is stuck when switching between horizontal and vertical screens. It can only turn around in about 3 seconds. Finally, it is pointed out that the function of the ScreenRotationAnimation class is called SurfaceControl.screenshot(SurfaceControl.getBuiltInDisplay( ...

Posted on Wed, 11 Mar 2020 03:30:01 -0400 by R0bb0b

Android one minute understanding of simple native FaceDetector face recognition to solve the problem of unclear recording video of SurfaceView+MediaRecorder

Recently, I found that when I logged into the background management system, I found that the uploaded authentication video was too vague, so I found that I did not set the frame frequency for the MediaRecorder. // Set the frame frequency to make the recorded video clearer mRecorder.setVideoEncodingBitRate(5*1024*1024); 1. Tur ...

Posted on Mon, 03 Feb 2020 11:16:14 -0500 by cljones81

Android uses camera to realize the problem of staying in the preview interface after taking photos

camera realizes the code of taking photos: /** * Start taking photos */ public void startCapture() { if (null != camera) { camera.takePicture(null, null, pictureCallback); } } private final Camera.PictureCallback pictureCallback = new Camera.PictureCallback() { @Over ...

Posted on Sun, 12 Jan 2020 10:52:23 -0500 by nutshell

Android - Custom external shadow, internal transparent canvas mask layout

Explain: A simple requirement, the external shadow, the internal layout is transparent, and the camera is opened at the bottom (here only the layout code, click here with the camera). Code: 1. Call Just call in Activity, set the height and width of the middle area. Activity code private OcrFaceMaskSurfaceView surfacevie ...

Posted on Sun, 05 Jan 2020 11:00:14 -0500 by mpunn

android Camera camera class

Several process methods related to Camera class Camera.open(cameraId) camera.setDisplayOrientation(0) set camera horizontal direction Mgamera.setpreviewdisplay (holder) displays the picture on the SurfaceHolder mCamera.setPreviewCallback(callback) sets the callback to pass Yuv data to the onPreviewFrame method Previewrate mparames = mmamer ...

Posted on Thu, 02 Jan 2020 04:31:30 -0500 by ayzee01

How to use TextureView

Note: This article is reproduced from https://blog.csdn.net/way/ping/article/details/26592125? UTM? Source = tuicool & UTM? Medium = reference Recently, in the modification of Android 4.4's native camera Camera2, I'm used to looking for SurfaceView. As a result, even if I use grep or ack, I can't find SurfaceView. Finally, I ...

Posted on Sat, 14 Dec 2019 15:38:51 -0500 by sweetstuff2003

Android Call Local Camera

Links to the original text: https://my.oschina.net/u/860952/blog/549212 To make an application, you may sometimes need to call a local camera, so here's how you want to call it. Camer ...

Posted on Wed, 09 Oct 2019 13:45:07 -0400 by Cereals