I have a function void log(String s) which prints a message into a TextView adding it to the existing text. Internally it uses a Handle
It does setText(getText().toString() + s) but when the text becomes large the whole UI thread freezes.
Is there a way to quickly put log output (like Log.d) in the UI thread?
Can you just update like this?
Or use a StringBuilder for your log messages. The setText(getText()+new log) is really slow.