Learn more about oom (low memory crash) in iOS

In the iOS development process or user feedback, you may often see this situation. When you use it, you will crash. When you check the crash stack in the background, you cannot find the crash log. In fact, most of this may be due to the system's low memory crash, that is, oom (another possibility is tha ...

Posted by drums on Thu, 16 Jan 2020 10:18:18 +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

Android touch event delivery mechanism, as before

Preface To be a great Android developer, you need a complete Knowledge System Here, let's grow up as we want. 1. Understanding the composition of Activity An Activity contains a Window object, which is implemented by PhoneWindow.PhoneWindow uses DecorView as the root View of the entire application window, and this DecorView divides the screen i ...

Posted by rocket on Thu, 09 Jan 2020 06:51:30 +0100

Plugging - Class Loading

Recent learning plug-in, see all kinds of brain pain, now write some notes with your own hands for future review, there are incorrect understanding, please point out Loading classes is accomplished through the class loader ClassLoader, which has several classloaders, as follows pathClassLoader can be understood as loading activities written ...

Posted by sdat1333 on Thu, 09 Jan 2020 04:55:06 +0100

Some things about SwitchButton

background When I was working on the project yesterday, I met a small problem. It's about switch button. That's it We have seen it in many places. The most typical is the notification management of our mobile phone. We often receive notifications from various apps. It's annoying, isn't it? There's a "allow notifications" button, just ...

Posted by TheTitans on Tue, 07 Jan 2020 18:48:48 +0100

Android power on skip ANR

1. reasons In some low-end mobile chips, it will be found that when the power on wizard is turned on, it is easy to have various situations of gms application of anr, which is caused by high cpu. However, for chips with poor performance, it is easy to cause anr, so the solution 1 is to skip skip anr. 2. Judgment time Search ...

Posted by tendrousbeastie on Tue, 07 Jan 2020 06:36:39 +0100

UVA - 11987 most union find

Title Link Main idea: The following operations are given in the title: 1. Merge the two sets of p and q; 2. Move p into the set q; 3. Output the number of elements in the set of p and the sum of these elements. Topic idea: We know that the combination of two sets is to connect the root node of P to the root node of Q, and t ...

Posted by ultranet on Tue, 07 Jan 2020 04:33:36 +0100

python learning: scratch + selenium crawling Taobao product information

Learning purpose: to use the framework of scratch to obtain dynamic website information. Take Taobao as an example, to obtain the [description, price, store, picture link] of goods and save the obtained information to execl table, or json file, database. Open Taobao homepage to search Yijia mobile phone, and get the url of t ...

Posted by mwood_2k2 on Mon, 06 Jan 2020 18:19:27 +0100