Hello to everyone...
So what's the issue I have is that the TextView become slow after a wile when its buffer gets full with information... You see it's reprints evry time entire buffer if it wold just append like it sounds that would not be happening. The speed of incoming information is 100ms.. So the textView gets freeze pretty fast.. .If Im delitting part of information it's become fast againt.. But I need to save it...
What I need is the solution Im pretty sure already exists in many different ways... Is that the textView reads the info to print from something like external buffer (String) just partly. Lets says its showing just a hundred last lines and if i scroll up it's downloads from that buffer what before that 100s? So how to that? It should called like textView control can't find really any info close to what I need.
So what's the issue I have is that the TextView become slow after a wile when its buffer gets full with information... You see it's reprints evry time entire buffer if it wold just append like it sounds that would not be happening. The speed of incoming information is 100ms.. So the textView gets freeze pretty fast.. .If Im delitting part of information it's become fast againt.. But I need to save it...
What I need is the solution Im pretty sure already exists in many different ways... Is that the textView reads the info to print from something like external buffer (String) just partly. Lets says its showing just a hundred last lines and if i scroll up it's downloads from that buffer what before that 100s? So how to that? It should called like textView control can't find really any info close to what I need.
Code:
case ListPaireeDeviceActivity.MESSAGE_READ:
final String readMessage = (String) msg.obj;
if(readMessage.contains(">")){
textView_terminal.append(readMessage +"\n" );
}else {
textView_terminal.append(readMessage );
}
// textView_terminal.setText(readMessage);
}
break;