ContentProvider, one of the four components of Android

Last time I talked about Activity, this time I talked about ContentProvider, one of the four components of Android 1. What is ContentProvider ContentProvider is one of the four components of Android content provider Function: data interaction & sharing between processes, i.e. cross process communication 2.uri introduc ...

Posted by InternetX on Sun, 26 Jan 2020 15:59:52 +0100

Audio and Video: Draw pictures in three ways

Because video rendering is essentially about displaying pictures one by one, the first step in learning is to learn to display pictures. This time we use three different ways to display a picture. ImageView ImageView is the easiest and most common way to use it. context?.let { image.setImageBi ...

Posted by raister on Sat, 25 Jan 2020 04:16:49 +0100

Shell uses ls to find files and directories

Find all directories ls -F | grep "/$" -F File type. Indicates that a symbol is added after each enumerated item to mark the File type. / indicates a directory; @Indicates a symbolic link to another file; *Indicates an executable ls -l -F /usr/lib Some of the results are as follows: -rw-r- ...

Posted by abasel on Wed, 22 Jan 2020 16:01:22 +0100

android uses AudioRecord to realize recording function (kotlin language)

1, Operation steps: 1. Set recording related parameters, audio acquisition source, sampling rate, channel and data format companion object{ private const val TAG:String = "OnlyAudioRecorder" private const val AudioSource = MediaRecorder.AudioSource.MIC//Student source priv ...

Posted by alin19 on Tue, 21 Jan 2020 17:03:16 +0100

Android App detects new version, automatically downloads, installs and upgrades, and is compatible with Android 7.0 and above

Preface Some companies may not go to the App store after developing an App, but they also need to regularly maintain and update later, so they will choose to publish the packaged apk to their own servers, and then build a version number table in the database, and then the rest will be handed over to ...

Posted by EvilPrimate on Thu, 16 Jan 2020 06:52:13 +0100

You should not call base in this method Xamarin Forms Renderer

Recently, I am working on Xamarin Forms project. I believe you are unfamiliar with Xamarin. In fact, it is also a cross platform technology. Please refer to the following official document to understand. What is Xamarin.Forms? Xamarin.Forms is an open-source UI framework. Xamarin.Forms allows deve ...

Posted by jeremuck on Wed, 15 Jan 2020 10:25:47 +0100

MT6739 Android 8.1 modifies the mtkcam of HAL layer to avoid the camera cutting and stretching the unsupported resolution

MT6739 Android 8.1 modifies the mtkcam of HAL layer to avoid the camera cutting and stretching the unsupported resolution CVBS camera is used in the project, and then mipi camera is used. NTSC and PAL cameras are used. Interlaced scanning has a special resolution. 720x240960x240 x240x240x240x2720x2889 ...

Posted by itsmeArry on Mon, 13 Jan 2020 10:22:23 +0100

Compatibility finishing for ios and Android front end

1. Date Compatibility Under Android Date.parse(new Date('2018-03-30 12:00:00')) Under ios system Date.parse(new Date('2018-03-30 12:00:00')) Conversion is not possible. Solution (compatibility writing) Date.parse(new Date('2018/03/30 12:00:00')) || Date.parse(new Date('2018-03-30 12:00:00')) Encapsul ...

Posted by ChrisDarl on Mon, 13 Jan 2020 03:18:34 +0100

Common methods of JavaScript project practice

On the front road, accumulate slowly 1. Get the parameter value passed by the URL through the parameter name Method 1 GetQueryString:function(name){//Get the parameter value passed by the URL through the parameter name var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = window.location.search ...

Posted by dotBz on Sun, 12 Jan 2020 17:45:09 +0100

Analysis of tts TextToSpeech source code principle of android system and customization of tts engine

TextToSpeech is the text to speech service, which is a native interface service provided by Android system. The native tts engine application can download the resource file of the corresponding language through detecting the system language, so as to achieve the ability of broadcasting the text of the s ...

Posted by Renlok on Sat, 11 Jan 2020 06:18:46 +0100