Android login registration interface add video background method (simple version)

Describes how to add a video background to the interface found on the Internet, which mimics keep 1. First add the raw folder under the res folder and copy in the video you want to use 2. Add video_under the layout folderBackground.xmlLayout, add Videview control inside layout 3. Change AndroidManifest.xml Content removes Bar from the disp ...

Posted by GrayFox12 on Thu, 16 Jul 2020 08:04:36 -0700

Recording MediaRecorder, Playing Audio (MediaPlayer, SoundPool) by Android

_Before using MediaRecorder, AudioRecord was used to record audio and found that the more complex and recorded audio was all harsh.It is possible that the file also needs a header.If you want to record, use MediaRecorder, it's easy to use. _Recording requires privileges, android 6.0 and above require runtime privileges ...

Posted by drax on Mon, 06 Jul 2020 09:23:48 -0700

iOS development network part -- complex JSON analysis data display

The data in the tableView below is downloaded from the network (server). Normally, clicking each cell will play the video. The url address of the video here is wrong. Therefore, the playback is wrong. Normally, the video can be played! Format online http://tool.oschina.net/codeformat/json The renderings are as follows: This project u ...

Posted by mayus on Sat, 09 May 2020 09:58:04 -0700

[Xiaobai forced] Android voice recording and playback processing -- Audio

AudioH Android voice recording and playback processing, based on mediaplayer and MediaRecorder Realization function 1. Realize Android voice recording function (currently, the package only supports AMR format); 2. Realize Android voice playback function (handset and speaker playback); 3. Realize the caching of netw ...

Posted by vboctor on Wed, 01 Apr 2020 01:46:09 -0700

Source code analysis of Binder native layer: sm's receiving and processing of data

We start with the main function of servicemanager main and binder & loop //\frameworks\native\cmds\servicemanager\service_manager.c int main() { struct binder_state *bs; bs = binder_open(128*1024); if (!bs) { ALOGE("failed to open binder driver\n"); return -1; } ...

Posted by x_maras on Sun, 02 Feb 2020 09:46:08 -0800

Basic usage of notification

notice Notification is a special function of Android system. When an application needs to send a reminder to users, it can be realized by notification. Most Android users like this function. Even IOS has added similar functions after version 5.0 1. You need a notification manager to manage notifications. You can call Content' ...

Posted by stbalaji2u on Sun, 26 Jan 2020 09:59:40 -0800

Android video seamless switching, using MediaPlayer and TextureView

Requirement description For example, when advertising is played, each video lasts for 15 seconds. When switching between videos, machines with poor performance may have a black screen for a period of time, and the experience is not good. Next, we need to solve the problem of black screen. Solution Two surfaceView modes are ...

Posted by josephicon on Thu, 02 Jan 2020 08:26:59 -0800

Android Studio learn to write English dictation app (music player) I

Recently, I fell in love with Android APP. I read some data and wrote while learning. It's just a hobby to pass the time. The tool is Android studio 3.0.1. In order to be lazy, I'm going to write a dictation APP for my children. The idea is to download the audio resource package from APP to SD card at that time. The APP plays an ...

Posted by gerardg on Thu, 19 Dec 2019 09:05:50 -0800

Audio playing one

I. simple audio playing [project preparation] ① a video file, the location of the video file ----- > create a new folder under res row ----- > put the video in the row folder ② generally speaking, audio playback does not need to stay in the interface all the time, so audio playback should be placed in the service, even if the inter ...

Posted by Stressed on Mon, 02 Dec 2019 10:33:27 -0800

Android implementation of music player [source code + Notes] - MediaPlayer

Design sketch: Before writing the code, I'll tell you a pit. When I implement this function, I encountered a pit when importing raw file, and I can't find this folder. If you also encounter this situation, please refer to a blog I wrote before to solve the problem: https://blog.csdn.net/qq_27494201/arti ...

Posted by maga2307 on Mon, 21 Oct 2019 11:41:12 -0700