kai-morich / SimpleUsbTerminal

Android terminal app for devices with a serial / UART interface connected with a USB-to-serial-converter
MIT License
528 stars 195 forks source link

foreground service to buffer receive data while the app is in background, #76

Closed skymoomy closed 3 months ago

skymoomy commented 3 months ago

Hi: I need to capture log through the USB device when I operate my phone。So I hope the app can still work in the background。I use this project :SimpleUsbTerminal , and found that When I successfully connected at the beginning, pressed the Home key and my phone displayed a notification,show that the app is still working. However, if the data is being receiving and the Home key is pressed, the notification will not appear, and re entering the APP interface will show the UI of USB Devices, which means i have to re connect my device.

Can this be solved? when the app is in the background, can we continue to maintain port connection and revieve datas from my device (capture logs)?

kai-morich commented 3 months ago

Duplicate to #75