Xunwei-IMX6Q development board Android application test-AndroidStudio-recorder test
[Copy link]
The supporting materials for this chapter are in the directory of "iTOP-i.MX6 development board data summary (excluding CD data)\06_iTOP-iMX6 development board Android application development environment software and source code\08_Android Studio test program\iTOP-iMX6-AndroidStudio-AudioRecPlay recorder_V1.0.rar" in the network disk.
1. Turn on the iTOP-iMX6 development board (the development board runs the android6.0 system, and the test proves that the APP can run on Android4.4 and Android7.1 systems), use the OTG cable to connect to the computer (adb driver is installed normally), use U to connect to the debug serial port (USB to serial driver works normally), and use a soft cable or HDMI cable to connect to the screen. The Android system in the development board turns on USB debugging, and the USB is configured as the MTP option, and the preparation is complete.
2 Open AndroidStudio, click file->open in the toolbar, open the audioRecplay project, in the red box we can see that the development board has been recognized, click the green triangle indicated by the arrow (it will turn into a circular arrow after the project is run), the project starts running, wait for a while, the APP is installed successfully, as shown in the figure below:
3 The audioRecplay APP is successfully installed on the development board, and the following interface pops up:
4 Insert the microphone into the MIC interface of the development board, and insert the earphone into the PHONE interface of the development board, as shown in the figure below:
5 Click the "Start Recording" button, and a "Start" pop-up window will pop up at the bottom of the APP interface. The Android Studio log is shown in the figure below. We start recording into the microphone. You can choose what you want to record. The author's recording is "Hello, classmates, hello, classmates" [
attach]534792[/attach]
6 After recording is finished, click the "End Recording" button, and a "Stop" pop-up window will pop up at the bottom of the APP interface.
7 Click the "Play Recording" button, and a "Play" pop-up window will pop up at the bottom of the APP interface. The Android Studio log is shown in the figure below.
|