The problem that app shuts down automatically when Android development board opens thread to read serial port data for a long time

at the request of the company, we recently used the android development board to develop a set of app to receive the temperature and humidity data transmitted by the probe through the serial port. The main purpose is to collect data all the time and use the data for analysis, so app is required to run stably for a long time.

first of all, the main Activity has been set to normally bright

clipboard.png

app

app

clipboard.png

`try{


app

I"d like to ask why app can"t run for a long time, and which part of the functional module is the cause of the problem.

Mar.22,2021

Gods, ask for guidance

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3cf7d-408e2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3cf7d-408e2.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?