(Source code introduction:
This is the source code of blowing effect under Android platform. This example is relatively simple. After clicking the button, blow it on the screen, and then the textview on the UI will change once.
The principle of this blowing is actually the monitoring of the microphone, so these two permissions should be added to androidmanifest In XML
& lt; uses-permission android:name=& quot; android. permission. RECORD_ AUDIO& quot;/& amp; gt;
& lt; uses-permission android:name=& quot; android. permission. WRITE_ EXTERNAL_ STORAGE& quot;/& amp; gt;
The effect is shown in the figure below. The simulator cannot be tested because a microphone is used. Only the real machine can work~)