Android serial port and Ethernet port
2016-08-23
0 0 0
no vote
Other
Earn points
(1) new construction: DataCollection, package name: com. JNU. DCS, and both the new JNI and libs folder under the project directory. (2) under the src folder to create a new package: android_serialport_api. Under this package and create two new classes: SerialPortFinder.java,SerialPort.java. SerialPortFinder.java this class is used to locate the system serial port can be used, and the SerialPort.java class is used to load SO file, opening and closing the serial port by means of JNI. (3) in the package com. JNU. DCS creates a succession of Appliction.java under android.app.Application, used to initialize the serial port and close the serial port. (4) in the package com. JNU. Creates a new Activity class that inherits the abstract under the DCS: SerialPortActivity.java, information is mainly used for reading the serial port. The main codes are as follows:
Click the file on the left to start the preview,please
!The preview only provides 20% of the code snippets, the complete code needs to be downloaded
Report
java
android
串口
网口
Related Source Codes
Android AOA Android Open Accessory Development Usi
0
0
no vote
Golang AOA Android Open Accessory HID Control
0
0
no vote
VPN source code accelerator
0
0
no vote
VPN source code
0
0
no vote
Springboot Campus Recruitment System
0
0
no vote
No comment