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
android Bluetooth printing
Bluetooth connection of mobile phone uses Jiabo printer (ZH380)
Bluetooth privileges
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.BLUETOOTH" />
android 6.0 and above also need to add location permission
<uses-permission android:nam ...
Posted by ankurcse on Mon, 06 Jan 2020 13:16:58 +0100
Rxjava2 introduction and detailed examples
Preface
Now we can see that more and more developers are using RX related technologies to develop apps, Java backend and other fields. In open source communities and Internet companies, Rx, responsive programming, and functional are popular. Therefore, the author will write a series of articles on Rxjava2 in combination with his own learning an ...
Posted by bearqst on Sat, 04 Jan 2020 08:10:41 +0100
Android get memory information (RAM,ROM)
1, Brief introduction to RAM and ROM
RAM refers to running memory. For example, the floating window of 360 mobile assistant often prompts that the running memory is more than 80%. It refers to running memory. The general size is a few G.
ROM is the memory for storing data. For example, the "total space 31.6G, the remaini ...
Posted by glcarlstrom on Sat, 04 Jan 2020 07:21:32 +0100