SimpleBluetoothTerminal icon indicating copy to clipboard operation
SimpleBluetoothTerminal copied to clipboard

Reconnect if connection lost

Open dringadrian opened this issue 3 years ago • 1 comments

Please make it reconnect if connection lost, might be checking once on a few seconds or something

dringadrian avatar Jul 16 '22 17:07 dringadrian

I have the same requirement for my app, which is a fork of this. Essentially, I added a feedback from TerminalFragment back to MainActivity upon connection loss and MainActivity then closes the old TerminalFragment and then restarts a new one. See mh-g/speedometer for details. (Alas, lots of other changes to the software as well, so it may be a bit hard to see the relevant changes. Among the other changes: some parsing in TerminalFragment and no UI for device selection.)

Also, I am quite new to Android and Java, so style and techniques are most likely not very good.

mh-g avatar Dec 04 '22 20:12 mh-g