Audio and video acquisition, coding, packet into mp4 output

Using Android Camera API to complete audio and video collection, coding, packet into mp4 output Based on android.hardware.Camera, create a horizontal screen application, preview the camera image in real time, realize the function of recording and outputting MP4. 1. Application authority <!-- Recording audio and video rights and write extern ...

Posted on Sun, 05 Apr 2020 05:33:30 -0700 by sametch

Android uses Intent to communicate between activities

Suppose that we have an activity FirstActivity as the main activity, and the activity loads a layout, on which there is a key named button 1 with the id of button? 1 Now, go to the source file for this activity: public class FirstActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedIns ...

Posted on Fri, 03 Apr 2020 17:06:08 -0700 by StefanRSA

Simulate Netease cloud

How to play music in listview First, define mediaPlayer in MusicActivity and initialize it in Oncreate method. The path to read the music in the Fragment file and put it into the array String path=cursor.getString(cursor.getColumnIndex(MediaStore.Audio.Media.DATA)); m.path=path; Common.musicList.add(m ...

Posted on Wed, 01 Apr 2020 23:24:31 -0700 by rayner75

The right posture to add Fragment in Android

Preface: We will certainly use Fragment in our normal development, and often have some inexplicable problems, such as bug s when rotating the screen or being killed and restarted by the system, which means that you are not adding Fragment properly! Here I summarize my way of adding Fragment to the project, which I call correct ...

Posted on Tue, 31 Mar 2020 18:30:32 -0700 by BooRadLey

Content table inserts and pastes plain text content

This article mainly introduces how to insert the input content at the cursor position or paste the plain text content at the cursor position when the div tag is set to contentable = 'true'. For the knowledge involved, please refer to the following: http://www.zhangxinxu.com/wordpress/2016/01/contentable-plaintext-only/ http://www.jb51.net/artic ...

Posted on Tue, 31 Mar 2020 07:41:25 -0700 by freakonaleash

Analysis of MVVM principle

MVVM definition: MVVM is a shorthand for model view ViewModel. MVVM is to abstract the state and behavior of View. Let's separate the View UI and business logic. Of course, ViewModel has helped us to do these things. It can take out the data of the Model and help to deal with the business logic involved in the View due to the need to display ...

Posted on Mon, 30 Mar 2020 09:48:29 -0700 by jenreb1

Android bottom navigation bar open source library

There are many open source libraries about the bottom navigation bar, except for the Design/BottomNavigationView and BottomBar bottom navigation bar , here are a few, which are relatively simple. classification NavBar AHBottomNavigation BottomNavigationBar BottomNavigationViewEx Bott ...

Posted on Fri, 27 Mar 2020 09:52:44 -0700 by reaper7861

Page frame 1: Fragment + RadioGroup

With the increase of contact projects, start to summarize some knowledge points, so as to use and find more convenient in the future. Every project needs to build a page framework. So far, I have contacted three main categories:Fragment+RadioGroup , Fragment+LinearLayout, Fragment + ViewPager. Let's talk about the first on ...

Posted on Thu, 26 Mar 2020 09:10:49 -0700 by cyberRobot

openGL using textures

Sampling: using texture coordinates to get texture color Sampler: clip shaders should also be able to access texture objects, but how can texture objects be passed to clip shaders? GLSL has a built-in data type for texture objects, called sampler, which uses texture type as suffix, such as sampler1D, sampler3D, or sampler2D. You can si ...

Posted on Sun, 22 Mar 2020 01:03:21 -0700 by dsantamassino

JavaScript&ES6 knowledge points

JavaScript&ES6 JavaSCript : data type array function ES6: New variable declaration method Destructuring assignment Arrow function Residual parameters Parameter template (template string) Array method JavaSCript : data type Simple data types: Number, String, Boolean, Undefined, and Nul ...

Posted on Fri, 13 Mar 2020 07:10:02 -0700 by slweb